mirror of
https://github.com/sjsdfg/effective-java-3rd-chinese.git
synced 2025-01-31 23:00:18 +08:00
item14 示例代码错误,修改为和英文原版相同
This commit is contained in:
parent
326c97043f
commit
18291cc8fc
@ -56,7 +56,7 @@ public interface Comparable<T> {
|
||||
public final class CaseInsensitiveString
|
||||
implements Comparable<CaseInsensitiveString> {
|
||||
public int compareTo(CaseInsensitiveString cis) {
|
||||
return String.CASE_INSENSITIVE_[ORDER.compare(s](http://ORDER.compare(s), cis.s);
|
||||
return String.CASE_INSENSITIVE_ORDER.compare(s, cis.s);
|
||||
}
|
||||
... // Remainder omitted
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user