mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-06 14:05:32 +00:00
ICU-8856 Fixed Eclipse compiler warnings.
X-SVN-Rev: 30789
This commit is contained in:
parent
504e04477a
commit
406f46d075
3 changed files with 36 additions and 41 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 1996-2007, International Business Machines Corporation and *
|
||||
* Copyright (C) 1996-2011, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -681,7 +681,6 @@ public class HolidayCalendarDemo extends DemoApplet
|
|||
|
||||
// See if any of the holidays land on this day....
|
||||
HolidayInfo info = null;
|
||||
int count = 0;
|
||||
|
||||
// Coordinates of lower-left corner of cell.
|
||||
x = (int)((cellPos.x) * cellWidth);
|
||||
|
@ -699,7 +698,6 @@ public class HolidayCalendarDemo extends DemoApplet
|
|||
box.draw(g, x + INSET, y - INSET - box.getHeight());
|
||||
|
||||
y -= (box.getHeight() + INSET);
|
||||
count++;
|
||||
}
|
||||
h++;
|
||||
}
|
||||
|
|
|
@ -22,7 +22,6 @@ import com.ibm.icu.dev.test.util.CollectionUtilities;
|
|||
import com.ibm.icu.impl.ICUDebug;
|
||||
import com.ibm.icu.impl.Row;
|
||||
import com.ibm.icu.impl.Row.R4;
|
||||
import com.ibm.icu.impl.Utility;
|
||||
import com.ibm.icu.lang.UProperty;
|
||||
import com.ibm.icu.lang.UScript;
|
||||
import com.ibm.icu.text.AlphabeticIndex;
|
||||
|
@ -36,7 +35,6 @@ import com.ibm.icu.text.RawCollationKey;
|
|||
import com.ibm.icu.text.RuleBasedCollator;
|
||||
import com.ibm.icu.text.UnicodeSet;
|
||||
import com.ibm.icu.util.ULocale;
|
||||
import com.ibm.icu.util.UResourceBundle;
|
||||
|
||||
/**
|
||||
* @author markdavis
|
||||
|
@ -201,18 +199,18 @@ public class AlphabeticIndexTest extends TestFmwk {
|
|||
// int comp = foo.compare("a", "ā");
|
||||
// assertEquals("should fall back to default for zh", -1, comp);
|
||||
// }
|
||||
|
||||
/**
|
||||
* @param rb
|
||||
* @param i
|
||||
*/
|
||||
private static void showBundle(UResourceBundle rb, int i) {
|
||||
for (String key : rb.keySet()) {
|
||||
System.out.print("\n" + Utility.repeat(" ", i) + key);
|
||||
UResourceBundle rb2 = rb.get(key);
|
||||
showBundle(rb2, i+1);
|
||||
}
|
||||
}
|
||||
//
|
||||
// /**
|
||||
// * @param rb
|
||||
// * @param i
|
||||
// */
|
||||
// private static void showBundle(UResourceBundle rb, int i) {
|
||||
// for (String key : rb.keySet()) {
|
||||
// System.out.print("\n" + Utility.repeat(" ", i) + key);
|
||||
// UResourceBundle rb2 = rb.get(key);
|
||||
// showBundle(rb2, i+1);
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
public void TestA() {
|
||||
|
|
|
@ -25,7 +25,6 @@ import com.ibm.icu.dev.test.util.CollectionUtilities.InverseMatcher;
|
|||
import com.ibm.icu.dev.test.util.CollectionUtilities.ObjectMatcher;
|
||||
import com.ibm.icu.impl.Utility;
|
||||
import com.ibm.icu.text.SymbolTable;
|
||||
import com.ibm.icu.text.Transform;
|
||||
import com.ibm.icu.text.UFormat;
|
||||
import com.ibm.icu.text.UTF16;
|
||||
import com.ibm.icu.text.UnicodeMatcher;
|
||||
|
@ -1501,28 +1500,28 @@ public abstract class UnicodeProperty extends UnicodeLabel {
|
|||
}
|
||||
}
|
||||
|
||||
private static class StringTransformProperty extends SimpleProperty {
|
||||
Transform<String,String> transform;
|
||||
|
||||
public StringTransformProperty(Transform<String,String> transform, boolean hasUniformUnassigned) {
|
||||
this.transform = transform;
|
||||
setUniformUnassigned(hasUniformUnassigned);
|
||||
}
|
||||
protected String _getValue(int codepoint) {
|
||||
return transform.transform(UTF16.valueOf(codepoint));
|
||||
}
|
||||
}
|
||||
|
||||
private static class CodepointTransformProperty extends SimpleProperty {
|
||||
Transform<Integer,String> transform;
|
||||
|
||||
public CodepointTransformProperty(Transform<Integer,String> transform, boolean hasUniformUnassigned) {
|
||||
this.transform = transform;
|
||||
setUniformUnassigned(hasUniformUnassigned);
|
||||
}
|
||||
protected String _getValue(int codepoint) {
|
||||
return transform.transform(codepoint);
|
||||
}
|
||||
}
|
||||
// private static class StringTransformProperty extends SimpleProperty {
|
||||
// Transform<String,String> transform;
|
||||
//
|
||||
// public StringTransformProperty(Transform<String,String> transform, boolean hasUniformUnassigned) {
|
||||
// this.transform = transform;
|
||||
// setUniformUnassigned(hasUniformUnassigned);
|
||||
// }
|
||||
// protected String _getValue(int codepoint) {
|
||||
// return transform.transform(UTF16.valueOf(codepoint));
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// private static class CodepointTransformProperty extends SimpleProperty {
|
||||
// Transform<Integer,String> transform;
|
||||
//
|
||||
// public CodepointTransformProperty(Transform<Integer,String> transform, boolean hasUniformUnassigned) {
|
||||
// this.transform = transform;
|
||||
// setUniformUnassigned(hasUniformUnassigned);
|
||||
// }
|
||||
// protected String _getValue(int codepoint) {
|
||||
// return transform.transform(codepoint);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue