File: 02_java5_compatibility.patch

package info (click to toggle)
jcharts 0.7.5-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 4,624 kB
  • sloc: java: 8,679; xml: 191; jsp: 190; makefile: 12; sh: 12
file content (26 lines) | stat: -rw-r--r-- 754 bytes parent folder | download | duplicates (2)
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
+}