Browse Source

REPORT-20323 sonar问题修复

research/11.0
Maksim 5 years ago
parent
commit
0b870a726d
  1. 4
      designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/AreaPlotPane.java
  2. 10
      designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/BarPlotPane.java
  3. 10
      designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/ColumnPlotPane.java
  4. 10
      designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/MeterPlotPane.java
  5. 10
      designer-chart/src/main/java/com/fr/van/chart/area/VanChartAreaPlotPane.java

4
designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/AreaPlotPane.java

@ -114,7 +114,9 @@ public class AreaPlotPane extends AbstractDeprecatedChartTypePane {
((Area3DPlot)plot).setStacked(true); ((Area3DPlot)plot).setStacked(true);
((Area3DPlot)plot).getyAxis().setPercentage(true); ((Area3DPlot)plot).getyAxis().setPercentage(true);
} }
createAreaCondition(plot); if(plot != null) {
createAreaCondition(plot);
}
return plot; return plot;
} }

10
designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/BarPlotPane.java

@ -97,10 +97,12 @@ public class BarPlotPane extends AbstractBarPane{
} }
Plot cloned = null; Plot cloned = null;
try { if(newPlot != null) {
cloned = (Plot)newPlot.clone(); try {
} catch (CloneNotSupportedException e) { cloned = (Plot) newPlot.clone();
FineLoggerFactory.getLogger().error("Error In ColumnChart"); } catch (CloneNotSupportedException e) {
FineLoggerFactory.getLogger().error("Error In ColumnChart");
}
} }
return cloned; return cloned;
} }

10
designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/ColumnPlotPane.java

@ -94,10 +94,12 @@ public class ColumnPlotPane extends AbstractBarPane{
} }
Plot cloned = null; Plot cloned = null;
try { if(newPlot != null) {
cloned = (Plot)newPlot.clone(); try {
} catch (CloneNotSupportedException e) { cloned = (Plot) newPlot.clone();
FineLoggerFactory.getLogger().error("Error In ColumnChart"); } catch (CloneNotSupportedException e) {
FineLoggerFactory.getLogger().error("Error In ColumnChart");
}
} }
return cloned; return cloned;
} }

10
designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/MeterPlotPane.java

@ -66,10 +66,12 @@ public class MeterPlotPane extends AbstractDeprecatedChartTypePane {
} }
Plot cloned = null; Plot cloned = null;
try { if(newPlot != null) {
cloned = (Plot)newPlot.clone(); try {
} catch (CloneNotSupportedException e) { cloned = (Plot) newPlot.clone();
FineLoggerFactory.getLogger().error("Error In ColumnChart"); } catch (CloneNotSupportedException e) {
FineLoggerFactory.getLogger().error("Error In ColumnChart");
}
} }
return cloned; return cloned;
} }

10
designer-chart/src/main/java/com/fr/van/chart/area/VanChartAreaPlotPane.java

@ -68,10 +68,12 @@ public class VanChartAreaPlotPane extends AbstractVanChartTypePane {
} }
} }
Plot cloned = null; Plot cloned = null;
try { if(newPlot != null) {
cloned = (Plot) newPlot.clone(); try {
} catch (CloneNotSupportedException e) { cloned = (Plot) newPlot.clone();
FineLoggerFactory.getLogger().error("Error In AreaChart"); } catch (CloneNotSupportedException e) {
FineLoggerFactory.getLogger().error("Error In AreaChart");
}
} }
return cloned; return cloned;
} }

Loading…
Cancel
Save