Преглед на файлове

Add some @Overrides and add the inspection.

Change-Id: If443a2b4dc5905433cd1b0b42eaaa93cc7db77e8
Reviewed-on: http://gerrit.dmdirc.com/3997
Reviewed-by: Chris Smith <chris@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
pull/1/head
Greg Holmes преди 9 години
родител
ревизия
3cb82bae8c
променени са 2 файла, в които са добавени 12 реда и са изтрити 1 реда
  1. 10
    1
      .idea/inspectionProfiles/Project_Default.xml
  2. 2
    0
      src/com/dmdirc/commandparser/auto/AutoCommand.java

+ 10
- 1
.idea/inspectionProfiles/Project_Default.xml Целия файл

@@ -135,6 +135,10 @@
135 135
     <inspection_tool class="MethodReturnAlwaysConstant" enabled="true" level="WARNING" enabled_by_default="true" />
136 136
     <inspection_tool class="MisorderedAssertEqualsParameters" enabled="true" level="WARNING" enabled_by_default="true" />
137 137
     <inspection_tool class="MissingDeprecatedAnnotation" enabled="true" level="WARNING" enabled_by_default="true" />
138
+    <inspection_tool class="MissingOverrideAnnotation" enabled="true" level="WARNING" enabled_by_default="true">
139
+      <option name="ignoreObjectMethods" value="false" />
140
+      <option name="ignoreAnonymousClassMethods" value="false" />
141
+    </inspection_tool>
138 142
     <inspection_tool class="MissortedModifiers" enabled="true" level="WARNING" enabled_by_default="true">
139 143
       <option name="m_requireAnnotationsFirst" value="true" />
140 144
     </inspection_tool>
@@ -218,6 +222,11 @@
218 222
     <inspection_tool class="SocketResource" enabled="true" level="WARNING" enabled_by_default="true">
219 223
       <option name="insideTryAllowed" value="false" />
220 224
     </inspection_tool>
225
+    <inspection_tool class="SpellCheckingInspection" enabled="false" level="TYPO" enabled_by_default="false">
226
+      <option name="processCode" value="false" />
227
+      <option name="processLiterals" value="false" />
228
+      <option name="processComments" value="false" />
229
+    </inspection_tool>
221 230
     <inspection_tool class="StaticCallOnSubclass" enabled="true" level="WARNING" enabled_by_default="true" />
222 231
     <inspection_tool class="StaticFieldReferenceOnSubclass" enabled="true" level="WARNING" enabled_by_default="true" />
223 232
     <inspection_tool class="StaticMethodOnlyUsedInOneClass" enabled="true" level="WARNING" enabled_by_default="true" />
@@ -307,4 +316,4 @@
307 316
       <option name="ignoreNonEmtpyLoops" value="false" />
308 317
     </inspection_tool>
309 318
   </profile>
310
-</component>
319
+</component>

+ 2
- 0
src/com/dmdirc/commandparser/auto/AutoCommand.java Целия файл

@@ -67,6 +67,7 @@ public class AutoCommand {
67 67
         return response;
68 68
     }
69 69
 
70
+    @Override
70 71
     public boolean equals(final Object object) {
71 72
         if (object == null) {
72 73
             return false;
@@ -87,6 +88,7 @@ public class AutoCommand {
87 88
         return Objects.hashCode(server, network, profile, response);
88 89
     }
89 90
 
91
+    @Override
90 92
     public String toString() {
91 93
         return Objects.toStringHelper(this)
92 94
                 .add("Connection", server)

Loading…
Отказ
Запис