Skip to content

Commit

Permalink
Parenthesis, Javadoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
run2000 committed Jun 30, 2014
1 parent feab522 commit e498757
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/org/compactbeans/beans/PropertyDescriptor.java
Original file line number Diff line number Diff line change
Expand Up @@ -588,8 +588,8 @@ public Class<?> getPropertyEditorClass() {
* Returns the property type that corresponds to the read and write method.
* The type precedence is given to the readMethod.
*
* @return the type of the property descriptor or null if both
* read and write methods are null.
* @return the type of the property descriptor or <code>null</code> if both
* read and write methods are <code>null</code>.
* @throws IntrospectionException if the read or write method is invalid
*/
private Class<?> findPropertyType(Method readMethod, Method writeMethod)
Expand All @@ -614,7 +614,7 @@ private Class<?> findPropertyType(Method readMethod, Method writeMethod)
throw new IntrospectionException("bad write method arg count: "
+ writeMethod);
}
if (propertyType != null && !params[0].isAssignableFrom(propertyType)) {
if ((propertyType != null) && !params[0].isAssignableFrom(propertyType)) {
throw new IntrospectionException("type mismatch between read and write methods");
}
propertyType = params[0];
Expand Down

0 comments on commit e498757

Please sign in to comment.