mirror of
https://github.com/sjsdfg/effective-java-3rd-chinese.git
synced 2025-01-06 10:20:58 +08:00
Update 10. 重写equals方法时遵守通用约定.md
This commit is contained in:
parent
7c69ce0de7
commit
d6a294f38f
@ -79,7 +79,6 @@ System.out.println(s.equals(cis)); // false
|
||||
|
||||
```java
|
||||
List<CaseInsensitiveString> list = new ArrayList<>();
|
||||
list.add(cis);List<CaseInsensitiveString> list = new ArrayList<>();
|
||||
list.add(cis);
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user