Skip to content

Commit

Permalink
rename DocumentValidStatus.invalidField to validField
Browse files Browse the repository at this point in the history
(because actually that's the meaning)

#291
  • Loading branch information
teosarca committed Apr 23, 2017
1 parent c904343 commit b0980ad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 112 deletions.

This file was deleted.

4 changes: 2 additions & 2 deletions src/main/java/de/metas/ui/web/window/model/DocumentField.java
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ private final DocumentValidStatus checkValid()
// Consider virtual fields as valid because there is nothing we can do about them
if (isVirtualField())
{
return DocumentValidStatus.invalidField(getFieldName(), isInitialValue());
return DocumentValidStatus.validField(getFieldName(), isInitialValue());
}

// Check mandatory constraint
Expand All @@ -471,7 +471,7 @@ private final DocumentValidStatus checkValid()
return DocumentValidStatus.invalidFieldMandatoryNotFilled(getFieldName(), isInitialValue());
}

return DocumentValidStatus.invalidField(getFieldName(), isInitialValue());
return DocumentValidStatus.validField(getFieldName(), isInitialValue());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static final DocumentValidStatus documentValid()
return STATE_Valid;
}

public static final DocumentValidStatus invalidField(final String fieldName, final boolean isInitialValue)
public static final DocumentValidStatus validField(final String fieldName, final boolean isInitialValue)
{
return new DocumentValidStatus(VALID_Yes, REASON_Null, fieldName, isInitialValue);
}
Expand Down

0 comments on commit b0980ad

Please sign in to comment.