TypeAliasTest: Avoid calling toString() on String objects

This commit is contained in:
Paul Campbell 2017-09-18 22:46:12 +01:00
parent b3c6520067
commit c93ec60a31

View file

@ -60,7 +60,7 @@ public class TypeAliasTest {
//given
final String value = "value";
final AnAlias anAlias = AnAlias.of(value);
assertThat(anAlias.toString()).isEqualTo(value.toString());
assertThat(anAlias.toString()).isEqualTo(value);
}
private static class AnAlias extends TypeAlias<String> {