Skip to content

Commit 0ebb59e

Browse files
committed
Simplification of theory parameter names, since format automatically deals with toString() and nulls.
1 parent a13afe1 commit 0ebb59e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/junit/experimental/theories/PotentialAssignment.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public String toString() {
1919

2020
@Override
2121
public String getDescription() throws CouldNotGenerateValueException {
22-
return String.format("%s: %s", name, (value != null ? value.toString() : "null"));
22+
return String.format("%s: %s", name, value);
2323
}
2424
};
2525
}

0 commit comments

Comments
 (0)