Просмотр исходного кода

Fix compiler warnings.

Change-Id: I41a2be71d099a4bfcfe20cea34cb83f3ac183e04
Reviewed-on: http://gerrit.dmdirc.com/3573
Reviewed-by: Chris Smith <chris@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
changes/73/3573/3
Greg Holmes 10 лет назад
Родитель
Сommit
3feb3bb3bb

+ 1
- 0
src/com/dmdirc/addons/dcc/ChatRequestDialog.java Просмотреть файл

@@ -33,6 +33,7 @@ import java.awt.Window;
33 33
  */
34 34
 public class ChatRequestDialog extends StandardQuestionDialog {
35 35
 
36
+    private static final long serialVersionUID = 1L;
36 37
     private final DCCManager manager;
37 38
     private final Parser parser;
38 39
     private final String nickname;

+ 1
- 0
src/com/dmdirc/addons/dcc/SendRequestDialog.java Просмотреть файл

@@ -33,6 +33,7 @@ import java.awt.Window;
33 33
  */
34 34
 public class SendRequestDialog extends StandardQuestionDialog {
35 35
 
36
+    private static final long serialVersionUID = 1L;
36 37
     private final DCCManager manager;
37 38
     private final String token;
38 39
     private final long ip;

+ 4
- 4
src/com/dmdirc/addons/sessionlock/SessionLockActionMetaType.java Просмотреть файл

@@ -32,9 +32,9 @@ public enum SessionLockActionMetaType implements ActionMetaType {
32 32
     /** Session Event. */
33 33
     SESSION_EVENT(new String[]{});
34 34
     /** The names of the arguments for this meta type. */
35
-    private String[] argNames;
35
+    private final String[] argNames;
36 36
     /** The classes of the arguments for this meta type. */
37
-    private Class[] argTypes;
37
+    private final Class<?>[] argTypes;
38 38
 
39 39
     /**
40 40
      * Creates a new instance of this meta-type.
@@ -42,7 +42,7 @@ public enum SessionLockActionMetaType implements ActionMetaType {
42 42
      * @param argNames The names of the meta-type's arguments
43 43
      * @param argTypes The types of the meta-type's arguments
44 44
      */
45
-    SessionLockActionMetaType(final String[] argNames, final Class... argTypes) {
45
+    SessionLockActionMetaType(final String[] argNames, final Class<?>... argTypes) {
46 46
         this.argNames = argNames;
47 47
         this.argTypes = argTypes;
48 48
     }
@@ -58,7 +58,7 @@ public enum SessionLockActionMetaType implements ActionMetaType {
58 58
     }
59 59
 
60 60
     @Override
61
-    public Class[] getArgTypes() {
61
+    public Class<?>[] getArgTypes() {
62 62
         return argTypes;
63 63
     }
64 64
 

+ 1
- 1
src/com/dmdirc/addons/time/TimeActionMetaType.java Просмотреть файл

@@ -39,7 +39,7 @@ public enum TimeActionMetaType implements ActionMetaType {
39 39
                 }
40 40
 
41 41
                 @Override
42
-                public Class[] getArgTypes() {
42
+                public Class<?>[] getArgTypes() {
43 43
                     return new Class<?>[]{Calendar.class};
44 44
                 }
45 45
 

+ 2
- 2
src/com/dmdirc/addons/ui_swing/Apple.java Просмотреть файл

@@ -128,7 +128,7 @@ public class Apple implements InvocationHandler {
128 128
      * @return Output from method.invoke()
129 129
      */
130 130
     private Object reflectMethod(final Object obj, final String className, final String methodName,
131
-            final Class[] classes, final Object[] objects) {
131
+            final Class<?>[] classes, final Object[] objects) {
132 132
         try {
133 133
             final Class<?> clazz = className == null ? obj.getClass() : Class.forName(className);
134 134
             final Method method = clazz.getMethod(methodName, classes == null ? new Class<?>[0]
@@ -150,7 +150,7 @@ public class Apple implements InvocationHandler {
150 150
      *
151 151
      * @return Output from method.invoke()
152 152
      */
153
-    private Object doAppleMethod(final String methodName, final Class[] classes,
153
+    private Object doAppleMethod(final String methodName, final Class<?>[] classes,
154 154
             final Object[] objects) {
155 155
         if (!isApple()) {
156 156
             return null;

Загрузка…
Отмена
Сохранить