Skip to content

Commit

Permalink
[JENKINS-35317] Findbugs!
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenc committed Jun 3, 2016
1 parent 42e01ba commit 7a2c5a2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -86,7 +86,7 @@ public String describe() {
return String.format("(%s == %s)", name, expected);
}
if (expected instanceof Boolean) {
return (Boolean) expected ? String.format("%s") : String.format("!%s");
return expected.toString();
}
if (expected instanceof Enum) {
return String.format("(%s == %s.%s)", name, ((Enum) expected).getDeclaringClass().getName(), ((Enum) expected).name());
Expand Down

0 comments on commit 7a2c5a2

Please sign in to comment.