]> granicus.if.org Git - icu/commitdiff
ICU-11314 Fixed compiler/FindBugs warnings.
authorYoshito Umaoka <y.umaoka@gmail.com>
Thu, 11 Dec 2014 17:03:23 +0000 (17:03 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Thu, 11 Dec 2014 17:03:23 +0000 (17:03 +0000)
X-SVN-Rev: 36855

icu4j/main/classes/core/src/com/ibm/icu/impl/SimpleFilteredSentenceBreakIterator.java
icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/HolidayTest.java

index ab77b4285420880b95b01a16fe2d0345b04e7527..f1568ebfadbc406ac45a1d10a365925d40fc4777 100644 (file)
@@ -135,6 +135,12 @@ public class SimpleFilteredSentenceBreakIterator extends BreakIterator {
                 && forwardsPartialTrie.equals(other.forwardsPartialTrie);
     }
 
+    @Override
+    public int hashCode() {
+        assert false : "hashCode not designed";
+        return -1;  // arbitrary constant
+    }
+
     @Override
     public Object clone() {
         SimpleFilteredSentenceBreakIterator other = (SimpleFilteredSentenceBreakIterator) super.clone();
index 9a6197fd3593bf3b97058214dd1fc01753cbb0e7..ca54bd0827c484f0b6a4ec32e7b1b10731537ab9 100644 (file)
@@ -152,7 +152,7 @@ public class HolidayTest extends TestFmwk {
 
             // Now find the # of days in the month
             c.roll(Calendar.DATE, false);
-            final int daysInMonth = c.get(Calendar.DATE);
+            // final int daysInMonth = c.get(Calendar.DATE);
 
             // Finally, find the end of the month, i.e. the start of the next one
             c.roll(Calendar.DATE, true);