Remove useless parens.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/248efa48
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/248efa48
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/248efa48

Branch: 
refs/heads/LOG4J2-1010&LOG4J2-1447-injectable-contextdata&better-datastructure
Commit: 248efa48a4a3d7583b17768866ba911caa4c35ac
Parents: ffc6c8f
Author: Gary Gregory <ggreg...@apache.org>
Authored: Wed Aug 3 15:27:40 2016 -0700
Committer: Gary Gregory <ggreg...@apache.org>
Committed: Wed Aug 3 15:27:40 2016 -0700

----------------------------------------------------------------------
 .../org/apache/logging/log4j/core/async/RingBufferLogEvent.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/248efa48/log4j-core/src/main/java/org/apache/logging/log4j/core/async/RingBufferLogEvent.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/async/RingBufferLogEvent.java
 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/async/RingBufferLogEvent.java
index 463536c..c4de9d4 100644
--- 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/async/RingBufferLogEvent.java
+++ 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/async/RingBufferLogEvent.java
@@ -200,7 +200,7 @@ public class RingBufferLogEvent implements LogEvent, 
ReusableMessage, CharSequen
     @Override
     public Message getMessage() {
         if (message == null) {
-            return (messageText == null) ? EMPTY : this;
+            return messageText == null ? EMPTY : this;
         }
         return message;
     }

Reply via email to