Skip to content
This repository has been archived by the owner on Jun 11, 2023. It is now read-only.

Commit

Permalink
#48 [test] Enhance the method DefaultFXMLValidator.requireEndsWith(...).
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoghuman committed Feb 27, 2019
1 parent 81d6589 commit 5b46b19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions release/Release_v0.3.0-PRERELEASE_2019-03-dd_HH-mm.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and connect them to a controller (called the presenter).


#### Enhancement
#48 [test] Enhance the method DefaultFXMLValidator.requireEndsWith(...).
#47 [api] Create 'FXMLModel.EMPTY' instance in the class FXMLModel.


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public static void requireNonNullAndNotEmpty(final String value) throws NullPoin
* <p>
* An additional error message will be added to the error stack:
* <ul>
* <li>"The attribute [value] must ends with the suffix: %s"</li>
* <li>"The attribute [value=%s] must ends with the suffix: %s"</li>
* </ul>
*
* @param value the String which should be checked.
Expand All @@ -127,7 +127,8 @@ public static void requireEndsWith(final String value, final String suffix) {

if (!value.endsWith(suffix)) {
throw new IllegalArgumentException(String.format(
"The attribute [value] must ends with the suffix: %s", suffix)); // NOI18N
"The attribute [value=%s] must ends with the suffix: %s", // NOI18N
value, suffix));
}
}

Expand Down

0 comments on commit 5b46b19

Please sign in to comment.