mirror of
https://github.com/sjsdfg/effective-java-3rd-chinese.git
synced 2025-01-19 16:50:15 +08:00
commit
32273113c0
@ -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