mirror of
https://github.com/sjsdfg/effective-java-3rd-chinese.git
synced 2026-08-22 19:53:28 +08:00
Update 10. 重写equals方法时遵守通用约定.md
This commit is contained in:
@@ -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);
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user