From 18291cc8fcdd961b45087085f9a700a0628f29d6 Mon Sep 17 00:00:00 2001 From: shibor zhang Date: Tue, 27 Aug 2019 16:49:29 +0800 Subject: [PATCH] =?UTF-8?q?item14=20=E7=A4=BA=E4=BE=8B=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E9=94=99=E8=AF=AF=EF=BC=8C=E4=BF=AE=E6=94=B9=E4=B8=BA=E5=92=8C?= =?UTF-8?q?=E8=8B=B1=E6=96=87=E5=8E=9F=E7=89=88=E7=9B=B8=E5=90=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/notes/14. 考虑实现Comparable接口.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/notes/14. 考虑实现Comparable接口.md b/docs/notes/14. 考虑实现Comparable接口.md index 04aa80c..7f663d8 100644 --- a/docs/notes/14. 考虑实现Comparable接口.md +++ b/docs/notes/14. 考虑实现Comparable接口.md @@ -56,7 +56,7 @@ public interface Comparable { public final class CaseInsensitiveString implements Comparable { 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 }