commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1712405 - /commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MappedPropertyDescriptor.java
Date Tue, 03 Nov 2015 20:55:33 GMT
Author: britter
Date: Tue Nov  3 20:55:33 2015
New Revision: 1712405

URL: http://svn.apache.org/viewvc?rev=1712405&view=rev
Log:
Drop unnecessary parantheses

Modified:
    commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MappedPropertyDescriptor.java

Modified: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MappedPropertyDescriptor.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MappedPropertyDescriptor.java?rev=1712405&r1=1712404&r2=1712405&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MappedPropertyDescriptor.java
(original)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/MappedPropertyDescriptor.java
Tue Nov  3 20:55:33 2015
@@ -113,7 +113,7 @@ public class MappedPropertyDescriptor
             mappedWriteMethod = getMethod(beanClass, "set" + base, 2);
         }
 
-        if ((mappedReadMethod == null) && (mappedWriteMethod == null)) {
+        if (mappedReadMethod == null && mappedWriteMethod == null) {
             throw new IntrospectionException("Property '" + propertyName + "' not found on
" + beanClass.getName());
         }
         mappedReadMethodRef = new MappedMethodReference(mappedReadMethod);



Mime
View raw message