Skip to content

Commit

Permalink
Don't explicitly format the message when there are no params at all.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bauke Scholtz committed Aug 19, 2016
1 parent 751ca58 commit 81077f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/omnifaces/util/Messages.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public interface Resolver {

@Override
public String getMessage(String message, Object... params) {
return MessageFormat.format(message, params);
return Utils.isEmpty(params) ? message : MessageFormat.format(message, params);
}

};
Expand Down

0 comments on commit 81077f2

Please sign in to comment.