Skip to content

Commit

Permalink
Merge pull request #80 from drapostolos/master
Browse files Browse the repository at this point in the history
Changed methodname to: rectored PROPERTY_EDITOR converter (method name was wrong)
  • Loading branch information
Luigi R. Viggiano committed Jun 10, 2014
2 parents 62512ea + b1ec204 commit ddfdfc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions owner/src/main/java/org/aeonbits/owner/Converters.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ Object tryConvert(Method targetMethod, Class<?> targetType, String text) {

@Override
Object tryConvert(Method targetMethod, Class<?> targetType, String text) {
if (canUsePropertyEditors())
if (!canUsePropertyEditors())
return SKIP;

PropertyEditor editor = PropertyEditorManager.findEditor(targetType);
Expand All @@ -160,7 +160,7 @@ Object tryConvert(Method targetMethod, Class<?> targetType, String text) {
}

private boolean canUsePropertyEditors() {
return ! isPropertyEditoryAvailable() || isPropertyEditorDisabled();
return isPropertyEditoryAvailable() && !isPropertyEditorDisabled();
}

private boolean isPropertyEditoryAvailable() {
Expand Down

0 comments on commit ddfdfc0

Please sign in to comment.