Package: jcharts / 0.7.5+dfsg-1

02_java5_compatibility.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Description: Fixed the build failure with Java 5
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: no
--- a/src/org/jCharts/chartText/TextTag.java
+++ b/src/org/jCharts/chartText/TextTag.java
@@ -404,15 +404,15 @@
 
 		if( attributes != null && attributes.size() > 0 )
 		{
-			java.util.Enumeration enum = attributes.keys();
+			java.util.Enumeration enumeration = attributes.keys();
 			str += "\nAttributes:";
-			while( enum.hasMoreElements() )
+			while( enumeration.hasMoreElements() )
 			{
-				Object ob = enum.nextElement();
+				Object ob = enumeration.nextElement();
 				str += "    [" + ob.toString() + "]=[" + attributes.get( ob ).toString() + "]\n";
 			}
 		}
 
 		return str;
 	}
-}
\ No newline at end of file
+}