File: libjfreechart-java-1.5.patch

package info (click to toggle)
jmodeltest 2.1.10%2Bdfsg-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,936 kB
  • sloc: java: 16,115; xml: 61; sh: 54; makefile: 10
file content (31 lines) | stat: -rw-r--r-- 1,332 bytes parent folder | 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
27
28
29
30
31
Description: class ChartUtilitie has been moved to ChartUtils in
 libjfreechart-java 1.5.x
Author: Pierre Gruet <pgt@debian.org>
Bug-Debian: https://bugs.debian.org/1099239
Forwarded: no
Last-Update: 2025-12-07

--- a/src/main/java/es/uvigo/darwin/jmodeltest/io/HtmlReporter.java
+++ b/src/main/java/es/uvigo/darwin/jmodeltest/io/HtmlReporter.java
@@ -35,7 +35,7 @@
 import java.util.Locale;
 import java.util.Map;
 
-import org.jfree.chart.ChartUtilities;
+import org.jfree.chart.ChartUtils;
 
 import pal.tree.Tree;
 import es.uvigo.darwin.jmodeltest.ApplicationOptions;
@@ -649,10 +649,10 @@
 			if (!IMAGES_DIR.exists()) {
 				IMAGES_DIR.mkdir();
 			}
-			ChartUtilities.saveChartAsPNG(new File(IMAGES_DIR.getPath() + File.separator + mOutputFile.getName() + "_rf_" + ic + ".png"), 
+			ChartUtils.saveChartAsPNG(new File(IMAGES_DIR.getPath() + File.separator + mOutputFile.getName() + "_rf_" + ic + ".png"),
 					RFHistogram.buildRFHistogram(ic),
 					width, height);
-			ChartUtilities.saveChartAsPNG(new File(IMAGES_DIR.getPath() + File.separator + mOutputFile.getName() + "_eu_" + ic + ".png"), 
+			ChartUtils.saveChartAsPNG(new File(IMAGES_DIR.getPath() + File.separator + mOutputFile.getName() + "_eu_" + ic + ".png"),
 					RFHistogram.buildEuclideanHistogram(ic),
 					width, height);
 		} catch (IOException e) {