TypeAliasTest: Avoid calling toString() on String objects
This commit is contained in:
parent
b3c6520067
commit
c93ec60a31
1 changed files with 1 additions and 1 deletions
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue