Skip to content

Commit bbc28fd

Browse files
committed
Remove unused inspection code
1 parent 18f5a59 commit bbc28fd

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/main/java/software/xdev/saveactions/processors/java/inspection/SerializableHasSerialVersionUIDFieldInspectionWrapper.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package software.xdev.saveactions.processors.java.inspection;
22

3-
import software.xdev.saveactions.core.service.SaveActionsService;
43
import com.intellij.codeInspection.LocalInspectionTool;
54
import com.intellij.openapi.diagnostic.Logger;
5+
import software.xdev.saveactions.core.service.SaveActionsService;
66

77
import java.lang.reflect.InvocationTargetException;
88
import java.util.Arrays;
@@ -31,11 +31,7 @@ public static LocalInspectionTool get() {
3131

3232
private enum SerializableClass {
3333
CLASS_NAME_INTELLIJ_2021_3("com.intellij.codeInspection.SerializableHasSerialVersionUidFieldInspection",
34-
"software.xdev.saveactions.processors.java.inspection.CustomSerializableHasSerialVersionUidFieldInspection"),
35-
CLASS_NAME_INTELLIJ_2018_3("com.siyeh.ig.serialization.SerializableHasSerialVersionUIDFieldInspection",
36-
"com.siyeh.ig.serialization.SerializableHasSerialVersionUIDFieldInspection"),
37-
CLASS_NAME_INTELLIJ_2016("com.siyeh.ig.serialization.SerializableHasSerialVersionUIDFieldInspectionBase",
38-
"com.siyeh.ig.serialization.SerializableHasSerialVersionUIDFieldInspectionBase");
34+
"software.xdev.saveactions.processors.java.inspection.CustomSerializableHasSerialVersionUidFieldInspection");
3935

4036
/**
4137
* Field className: Inspection class provided by IDE
@@ -61,7 +57,8 @@ public LocalInspectionTool getInspectionInstance() {
6157
Class.forName(targetClass).asSubclass(LocalInspectionTool.class);
6258
LOGGER.info(String.format("Found serial version uid class %s", targetInspectionClass.getName()));
6359
return targetInspectionClass.cast(targetInspectionClass.getDeclaredConstructor().newInstance());
64-
} catch (ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException e) {
60+
} catch (ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException
61+
| InvocationTargetException e) {
6562
return null;
6663
}
6764
}

0 commit comments

Comments
 (0)