From: Nick Burch Date: Fri, 18 Feb 2011 17:41:17 +0000 (+0000) Subject: Fix generics warnings X-Git-Tag: REL_3_8_BETA1~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7b08adece833c9ec5bdc263433039f14b3bebf7e;p=poi.git Fix generics warnings git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1072080 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/hssf/util/HSSFColor.java b/src/java/org/apache/poi/hssf/util/HSSFColor.java index b640b37e1c..bca0047dc3 100644 --- a/src/java/org/apache/poi/hssf/util/HSSFColor.java +++ b/src/java/org/apache/poi/hssf/util/HSSFColor.java @@ -53,14 +53,14 @@ public class HSSFColor implements Color { * * @return a hashtable containing all colors keyed by Integer excel-style palette indexes */ - public final static Hashtable getIndexHash() { + public final static Hashtable getIndexHash() { return createColorsByIndexMap(); } - private static Hashtable createColorsByIndexMap() { + private static Hashtable createColorsByIndexMap() { HSSFColor[] colors = getAllColors(); - Hashtable result = new Hashtable(colors.length * 3 / 2); + Hashtable result = new Hashtable(colors.length * 3 / 2); for (int i = 0; i < colors.length; i++) { HSSFColor color = colors[i]; @@ -142,14 +142,14 @@ public class HSSFColor implements Color { * * @return a hashtable containing all colors keyed by String gnumeric-like triplets */ - public final static Hashtable getTripletHash() + public final static Hashtable getTripletHash() { return createColorsByHexStringMap(); } - private static Hashtable createColorsByHexStringMap() { + private static Hashtable createColorsByHexStringMap() { HSSFColor[] colors = getAllColors(); - Hashtable result = new Hashtable(colors.length * 3 / 2); + Hashtable result = new Hashtable(colors.length * 3 / 2); for (int i = 0; i < colors.length; i++) { HSSFColor color = colors[i];