Quellcode durchsuchen

Fix compiler warnings.

Change-Id: I56e2062a3074d39153c30aa0eaecce94408295e2
Reviewed-on: http://gerrit.dmdirc.com/3574
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com>
pull/1/head
Greg Holmes vor 10 Jahren
Ursprung
Commit
301b3bf0d6

+ 3
- 3
src/com/dmdirc/actions/metatypes/ActionEvents.java Datei anzeigen

@@ -38,7 +38,7 @@ public enum ActionEvents implements ActionMetaType {
38 38
     /** The names of the arguments for this meta type. */
39 39
     private String[] argNames;
40 40
     /** The classes of the arguments for this meta type. */
41
-    private Class[] argTypes;
41
+    private Class<?>[] argTypes;
42 42
 
43 43
     /**
44 44
      * Creates a new instance of this meta-type.
@@ -46,7 +46,7 @@ public enum ActionEvents implements ActionMetaType {
46 46
      * @param argNames The names of the meta-type's arguments
47 47
      * @param argTypes The types of the meta-type's arguments
48 48
      */
49
-    ActionEvents(final String[] argNames, final Class... argTypes) {
49
+    ActionEvents(final String[] argNames, final Class<?>... argTypes) {
50 50
         this.argNames = argNames;
51 51
         this.argTypes = argTypes;
52 52
     }
@@ -57,7 +57,7 @@ public enum ActionEvents implements ActionMetaType {
57 57
     }
58 58
 
59 59
     @Override
60
-    public Class[] getArgTypes() {
60
+    public Class<?>[] getArgTypes() {
61 61
         return argTypes;
62 62
     }
63 63
 

+ 3
- 3
src/com/dmdirc/actions/metatypes/ChannelEvents.java Datei anzeigen

@@ -62,7 +62,7 @@ public enum ChannelEvents implements ActionMetaType {
62 62
     /** The names of the arguments for this meta type. */
63 63
     private String[] argNames;
64 64
     /** The classes of the arguments for this meta type. */
65
-    private Class[] argTypes;
65
+    private Class<?>[] argTypes;
66 66
 
67 67
     /**
68 68
      * Creates a new instance of this meta-type.
@@ -70,7 +70,7 @@ public enum ChannelEvents implements ActionMetaType {
70 70
      * @param argNames The names of the meta-type's arguments
71 71
      * @param argTypes The types of the meta-type's arguments
72 72
      */
73
-    ChannelEvents(final String[] argNames, final Class... argTypes) {
73
+    ChannelEvents(final String[] argNames, final Class<?>... argTypes) {
74 74
         this.argNames = argNames;
75 75
         this.argTypes = argTypes;
76 76
     }
@@ -81,7 +81,7 @@ public enum ChannelEvents implements ActionMetaType {
81 81
     }
82 82
 
83 83
     @Override
84
-    public Class[] getArgTypes() {
84
+    public Class<?>[] getArgTypes() {
85 85
         return argTypes;
86 86
     }
87 87
 

+ 3
- 3
src/com/dmdirc/actions/metatypes/ClientEvents.java Datei anzeigen

@@ -67,7 +67,7 @@ public enum ClientEvents implements ActionMetaType {
67 67
     /** The names of the arguments for this meta type. */
68 68
     private String[] argNames;
69 69
     /** The classes of the arguments for this meta type. */
70
-    private Class[] argTypes;
70
+    private Class<?>[] argTypes;
71 71
 
72 72
     /**
73 73
      * Creates a new instance of this meta-type.
@@ -75,7 +75,7 @@ public enum ClientEvents implements ActionMetaType {
75 75
      * @param argNames The names of the meta-type's arguments
76 76
      * @param argTypes The types of the meta-type's arguments
77 77
      */
78
-    ClientEvents(final String[] argNames, final Class... argTypes) {
78
+    ClientEvents(final String[] argNames, final Class<?>... argTypes) {
79 79
         this.argNames = argNames;
80 80
         this.argTypes = argTypes;
81 81
     }
@@ -86,7 +86,7 @@ public enum ClientEvents implements ActionMetaType {
86 86
     }
87 87
 
88 88
     @Override
89
-    public Class[] getArgTypes() {
89
+    public Class<?>[] getArgTypes() {
90 90
         return argTypes;
91 91
     }
92 92
 

+ 3
- 3
src/com/dmdirc/actions/metatypes/LinkEvents.java Datei anzeigen

@@ -39,7 +39,7 @@ public enum LinkEvents implements ActionMetaType {
39 39
     /** The names of the arguments for this meta type. */
40 40
     private String[] argNames;
41 41
     /** The classes of the arguments for this meta type. */
42
-    private Class[] argTypes;
42
+    private Class<?>[] argTypes;
43 43
 
44 44
     /**
45 45
      * Creates a new instance of this meta-type.
@@ -47,7 +47,7 @@ public enum LinkEvents implements ActionMetaType {
47 47
      * @param argNames The names of the meta-type's arguments
48 48
      * @param argTypes The types of the meta-type's arguments
49 49
      */
50
-    LinkEvents(final String[] argNames, final Class... argTypes) {
50
+    LinkEvents(final String[] argNames, final Class<?>... argTypes) {
51 51
         this.argNames = argNames;
52 52
         this.argTypes = argTypes;
53 53
     }
@@ -58,7 +58,7 @@ public enum LinkEvents 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
 

+ 3
- 3
src/com/dmdirc/actions/metatypes/PluginEvents.java Datei anzeigen

@@ -35,7 +35,7 @@ public enum PluginEvents implements ActionMetaType {
35 35
     /** The names of the arguments for this meta type. */
36 36
     private String[] argNames;
37 37
     /** The classes of the arguments for this meta type. */
38
-    private Class[] argTypes;
38
+    private Class<?>[] argTypes;
39 39
 
40 40
     /**
41 41
      * Creates a new instance of this meta-type.
@@ -43,7 +43,7 @@ public enum PluginEvents implements ActionMetaType {
43 43
      * @param argNames The names of the meta-type's arguments
44 44
      * @param argTypes The types of the meta-type's arguments
45 45
      */
46
-    PluginEvents(final String[] argNames, final Class... argTypes) {
46
+    PluginEvents(final String[] argNames, final Class<?>... argTypes) {
47 47
         this.argNames = argNames;
48 48
         this.argTypes = argTypes;
49 49
     }
@@ -54,7 +54,7 @@ public enum PluginEvents implements ActionMetaType {
54 54
     }
55 55
 
56 56
     @Override
57
-    public Class[] getArgTypes() {
57
+    public Class<?>[] getArgTypes() {
58 58
         return argTypes;
59 59
     }
60 60
 

+ 3
- 3
src/com/dmdirc/actions/metatypes/QueryEvents.java Datei anzeigen

@@ -41,7 +41,7 @@ public enum QueryEvents implements ActionMetaType {
41 41
     /** The names of the arguments for this meta type. */
42 42
     private String[] argNames;
43 43
     /** The classes of the arguments for this meta type. */
44
-    private Class[] argTypes;
44
+    private Class<?>[] argTypes;
45 45
 
46 46
     /**
47 47
      * Creates a new instance of this meta-type.
@@ -49,7 +49,7 @@ public enum QueryEvents implements ActionMetaType {
49 49
      * @param argNames The names of the meta-type's arguments
50 50
      * @param argTypes The types of the meta-type's arguments
51 51
      */
52
-    QueryEvents(final String[] argNames, final Class... argTypes) {
52
+    QueryEvents(final String[] argNames, final Class<?>... argTypes) {
53 53
         this.argNames = argNames;
54 54
         this.argTypes = argTypes;
55 55
     }
@@ -60,7 +60,7 @@ public enum QueryEvents implements ActionMetaType {
60 60
     }
61 61
 
62 62
     @Override
63
-    public Class[] getArgTypes() {
63
+    public Class<?>[] getArgTypes() {
64 64
         return argTypes;
65 65
     }
66 66
 

+ 3
- 3
src/com/dmdirc/actions/metatypes/ServerEvents.java Datei anzeigen

@@ -58,7 +58,7 @@ public enum ServerEvents implements ActionMetaType {
58 58
     /** The names of the arguments for this meta type. */
59 59
     private String[] argNames;
60 60
     /** The classes of the arguments for this meta type. */
61
-    private Class[] argTypes;
61
+    private Class<?>[] argTypes;
62 62
 
63 63
     /**
64 64
      * Creates a new instance of this meta-type.
@@ -66,7 +66,7 @@ public enum ServerEvents implements ActionMetaType {
66 66
      * @param argNames The names of the meta-type's arguments
67 67
      * @param argTypes The types of the meta-type's arguments
68 68
      */
69
-    ServerEvents(final String[] argNames, final Class... argTypes) {
69
+    ServerEvents(final String[] argNames, final Class<?>... argTypes) {
70 70
         this.argNames = argNames;
71 71
         this.argTypes = argTypes;
72 72
     }
@@ -77,7 +77,7 @@ public enum ServerEvents implements ActionMetaType {
77 77
     }
78 78
 
79 79
     @Override
80
-    public Class[] getArgTypes() {
80
+    public Class<?>[] getArgTypes() {
81 81
         return argTypes;
82 82
     }
83 83
 

+ 1
- 1
src/com/dmdirc/interfaces/actions/ActionMetaType.java Datei anzeigen

@@ -39,7 +39,7 @@ public interface ActionMetaType {
39 39
      *
40 40
      * @return The type of arguments expected
41 41
      */
42
-    Class[] getArgTypes();
42
+    Class<?>[] getArgTypes();
43 43
 
44 44
     /**
45 45
      * Retrieves the names of the arguments that actions of this type should expect.

Laden…
Abbrechen
Speichern