You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ni...@apache.org on 2011/02/18 18:41:17 UTC
svn commit: r1072080 -
/poi/trunk/src/java/org/apache/poi/hssf/util/HSSFColor.java
Author: nick
Date: Fri Feb 18 17:41:17 2011
New Revision: 1072080
URL: http://svn.apache.org/viewvc?rev=1072080&view=rev
Log:
Fix generics warnings
Modified:
poi/trunk/src/java/org/apache/poi/hssf/util/HSSFColor.java
Modified: poi/trunk/src/java/org/apache/poi/hssf/util/HSSFColor.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/hssf/util/HSSFColor.java?rev=1072080&r1=1072079&r2=1072080&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/hssf/util/HSSFColor.java (original)
+++ poi/trunk/src/java/org/apache/poi/hssf/util/HSSFColor.java Fri Feb 18 17:41:17 2011
@@ -53,14 +53,14 @@ public class HSSFColor implements Color
*
* @return a hashtable containing all colors keyed by <tt>Integer</tt> excel-style palette indexes
*/
- public final static Hashtable getIndexHash() {
+ public final static Hashtable<Integer,HSSFColor> getIndexHash() {
return createColorsByIndexMap();
}
- private static Hashtable createColorsByIndexMap() {
+ private static Hashtable<Integer,HSSFColor> createColorsByIndexMap() {
HSSFColor[] colors = getAllColors();
- Hashtable result = new Hashtable(colors.length * 3 / 2);
+ Hashtable<Integer,HSSFColor> result = new Hashtable<Integer,HSSFColor>(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<String,HSSFColor> getTripletHash()
{
return createColorsByHexStringMap();
}
- private static Hashtable createColorsByHexStringMap() {
+ private static Hashtable<String,HSSFColor> createColorsByHexStringMap() {
HSSFColor[] colors = getAllColors();
- Hashtable result = new Hashtable(colors.length * 3 / 2);
+ Hashtable<String,HSSFColor> result = new Hashtable<String,HSSFColor>(colors.length * 3 / 2);
for (int i = 0; i < colors.length; i++) {
HSSFColor color = colors[i];
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org