Skip to content

Commit f599ea6

Browse files
committed
Fix minor static analysis warnings
1 parent 9e0336e commit f599ea6

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/main/java/org/jfree/svg/ImageElement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public String toString() {
9292
StringBuilder sb = new StringBuilder();
9393
sb.append("ImageElement[");
9494
sb.append(this.href).append(", ").append(this.image);
95-
sb.append("]");
95+
sb.append(']');
9696
return sb.toString();
9797
}
9898

src/main/java/org/jfree/svg/SVGGraphicsDevice.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public class SVGGraphicsDevice extends GraphicsDevice {
5151
* @param defaultConfig the default configuration.
5252
*/
5353
public SVGGraphicsDevice(String id, GraphicsConfiguration defaultConfig) {
54+
super();
5455
this.id = id;
5556
this.defaultConfig = defaultConfig;
5657
}

src/test/java/org/jfree/svg/TestSVGGraphics2D.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,9 @@ void checkClipAfterCreate() {
926926

927927
@Test
928928
void checkGradientPaintRefGeneration() {
929-
if (!(this.g2 instanceof SVGGraphics2D)) return;
929+
if (!(this.g2 instanceof SVGGraphics2D)) {
930+
return;
931+
}
930932
SVGGraphics2D svg2 = (SVGGraphics2D) this.g2;
931933
GradientPaint gp0 = new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f, 4.0f, Color.BLUE);
932934
svg2.setPaint(gp0);

0 commit comments

Comments
 (0)