Bläddra i källkod

documentation work, and GTFO for a warning

LH 9 år sedan
förälder
incheckning
e1080544fc

+ 4 - 0
iZpl/src/main/java/de/nplusc/izc/iZpl/CommandLineParsing.java

@@ -283,4 +283,8 @@ public class CommandLineParsing
                 featurePluginID, pluginParameter, loadConfigMode, menumode, firstrunmode, updateInit, 
                 allowPluginLoad,skinParameterSet,selectedSkinPath,uimodestate,streamport>0,streamport);
     }
+
+    private CommandLineParsing()
+    {
+    }
 }

+ 9 - 8
iZpl/src/main/java/de/nplusc/izc/iZpl/Main.java

@@ -75,6 +75,7 @@ public class Main extends javax.swing.JFrame
      */
     public static Configuration CONFIG;
     
+     @SuppressWarnings("FieldMayBeFinal")
     private static PluginManager p = new PluginManager();
     private static Logger l;
 
@@ -359,6 +360,7 @@ public class Main extends javax.swing.JFrame
                 });
                 t1.setName("IZPL-Backend");
                 t1.start();
+                @SuppressWarnings("SleepWhileInLoop")
                 Thread t2 = new Thread(() ->
                 {
                     try
@@ -667,7 +669,7 @@ public class Main extends javax.swing.JFrame
     //^--evil line doesnt need any code :P
     /**
      * Internal method for the API
-     * @return 
+     * @return Reference to PLServer
      */
     public static PLServer getPLServer()
     {
@@ -675,7 +677,6 @@ public class Main extends javax.swing.JFrame
     }
     /**
      * Internal method for the API
-     * @return 
      */
     public static void gotAIssue()
     {
@@ -683,7 +684,7 @@ public class Main extends javax.swing.JFrame
     }
     /**
      * Internal method for the API
-     * @return 
+     * @param issue Status of the issue flag 
      */
     public static void gotAIssue(boolean issue)
     {
@@ -691,7 +692,7 @@ public class Main extends javax.swing.JFrame
     }
     /**
      * Internal method for the API
-     * @return 
+     * @return Image referencing the Program icon
      */
     public static Image getPlayListIcon()
     {
@@ -699,7 +700,7 @@ public class Main extends javax.swing.JFrame
     }
     /**
      * Internal method for the API
-     * @return 
+     * @return Whether we are using filemode
      */
     public static boolean isFilemode()
     {
@@ -707,7 +708,7 @@ public class Main extends javax.swing.JFrame
     }
     /**
      * Internal method for the API
-     * @return 
+     * @return whether we use the statefile mode
      */
     public static boolean isStatefile()
     {
@@ -715,7 +716,7 @@ public class Main extends javax.swing.JFrame
     }
     /**
      * Internal method for the API
-     * @return 
+     * @return Commandline status
      */
     public static CommandLineStatus getStts()
     {
@@ -724,7 +725,7 @@ public class Main extends javax.swing.JFrame
     
     /**
      * Internal method for the API
-     * @return 
+     * @return PluginManager
      */
     public static PluginManager getPluginManager()
     {