You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2012/10/06 20:27:21 UTC

svn commit: r1395144 - in /logging/log4j/log4j2/trunk: api/src/main/java/org/apache/logging/log4j/ core/src/main/java/org/apache/logging/log4j/core/config/plugins/ core/src/main/java/org/apache/logging/log4j/core/lookup/ log4j12-api/src/main/java/org/a...

Author: ggregory
Date: Sat Oct  6 18:27:20 2012
New Revision: 1395144

URL: http://svn.apache.org/viewvc?rev=1395144&view=rev
Log:
Replace "return (expr);" with "return expr;"

Modified:
    logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/Level.java
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/plugins/ResolverUtil.java
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/lookup/StrSubstitutor.java
    logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Priority.java

Modified: logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/Level.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/Level.java?rev=1395144&r1=1395143&r2=1395144&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/Level.java (original)
+++ logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/Level.java Sat Oct  6 18:27:20 2012
@@ -113,7 +113,7 @@ public enum Level {
      * @return True if the passed Level is more specific or the same as this Level.
      */
     public boolean isAtLeastAsSpecificAs(Level level) {
-        return (intLevel <= level.intLevel);
+        return intLevel <= level.intLevel;
     }
 
     /**
@@ -124,7 +124,7 @@ public enum Level {
      * @return True if the passed Level is more specific or the same as this Level.
      */
     public boolean isAtLeastAsSpecificAs(int level) {
-        return (intLevel <= level);
+        return intLevel <= level;
     }
 
     /**
@@ -133,7 +133,7 @@ public enum Level {
      * @return True if the passed Level is more specific or the same as this Level.
      */
     public boolean lessOrEqual(Level level) {
-        return (intLevel <= level.intLevel);
+        return intLevel <= level.intLevel;
     }
 
     /**
@@ -142,7 +142,7 @@ public enum Level {
      * @return True if the passed Level is more specific or the same as this Level.
      */
     public boolean lessOrEqual(int level) {
-        return (intLevel <= level);
+        return intLevel <= level;
     }
 
     /**

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/plugins/ResolverUtil.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/plugins/ResolverUtil.java?rev=1395144&r1=1395143&r2=1395144&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/plugins/ResolverUtil.java (original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/plugins/ResolverUtil.java Sat Oct  6 18:27:20 2012
@@ -537,7 +537,7 @@ public class ResolverUtil<T> {
         public NameIs(String name) { this.name = "/" + name; }
 
         public boolean matches(URI resource) {
-            return (resource.getPath().endsWith(name));
+            return resource.getPath().endsWith(name);
         }
 
         @Override public String toString() {

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/lookup/StrSubstitutor.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/lookup/StrSubstitutor.java?rev=1395144&r1=1395143&r2=1395144&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/lookup/StrSubstitutor.java (original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/lookup/StrSubstitutor.java Sat Oct  6 18:27:20 2012
@@ -854,7 +854,7 @@ public class StrSubstitutor {
             }
         }
         if (top) {
-            return (altered ? 1 : 0);
+            return altered ? 1 : 0;
         }
         return lengthChange;
     }

Modified: logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Priority.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Priority.java?rev=1395144&r1=1395143&r2=1395144&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Priority.java (original)
+++ logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Priority.java Sat Oct  6 18:27:20 2012
@@ -129,7 +129,7 @@ public class Priority {
     public boolean equals(Object o) {
         if (o instanceof Priority) {
             Priority r = (Priority) o;
-            return (this.level == r.level);
+            return this.level == r.level;
         } else {
             return false;
         }