소스 검색

make spotbugs happy

Eren Yilmaz 6 년 전
부모
커밋
49027d7de5
2개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 1
      src/view/MainView.java
  2. 1 1
      src/view/RenderHelper.java

+ 0 - 1
src/view/MainView.java

@@ -166,7 +166,6 @@ public class MainView {
      */
     public MainView( LayeredGraphNode graph )
     {
-        RenderHelper.font = new Font("Monospaced", Font.PLAIN, 12);
         graph.setColor( null, null );
         frameCounter++;
         this.graph = graph;

+ 1 - 1
src/view/RenderHelper.java

@@ -17,7 +17,7 @@ public class RenderHelper {
     public static final Color FOREGROUND_COLOR = new Color(0xa9b7c6);
     public static final Color BREAKPOINT_COLOR = new Color(0x6c2020);
     public static final Color CURRENT_LINE_COLOR = new Color(0x606366);
-    public static Font font;
+    public static Font font = new Font("Monospaced", Font.PLAIN, 12);
   
     /**
      * creates an arrow shape to draw it, for example as part of an edge.