commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1671674 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java
Date Mon, 06 Apr 2015 19:45:11 GMT
Author: britter
Date: Mon Apr  6 19:45:11 2015
New Revision: 1671674

URL: http://svn.apache.org/r1671674
Log:
PMD: Useless parentheses

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java?rev=1671674&r1=1671673&r2=1671674&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java
(original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/HashCodeBuilder.java
Mon Apr  6 19:45:11 2015
@@ -190,9 +190,9 @@ public class HashCodeBuilder implements
             AccessibleObject.setAccessible(fields, true);
             for (final Field field : fields) {
                 if (!ArrayUtils.contains(excludeFields, field.getName())
-                    && (!field.getName().contains("$"))
+                    && !field.getName().contains("$")
                     && (useTransients || !Modifier.isTransient(field.getModifiers()))
-                    && (!Modifier.isStatic(field.getModifiers()))) {
+                    && !Modifier.isStatic(field.getModifiers())) {
                     try {
                         final Object fieldValue = field.get(object);
                         builder.append(fieldValue);



Mime
View raw message