Skip to content

Commit ee68662

Browse files
committed
Moved CustomUnqualifiedStaticUsageInspection into correct package
Fixes #25
1 parent dc48023 commit ee68662

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.0.5
2+
* Fixed ``Add class qualifier to static member access outside declaring class`` not working in combination with Qodana plugin #25
3+
14
## 1.0.4
25
* Fixed pluginIcon being not displayed #35
36
* Improved support of Android Studio (until a 2023 version is released) #27

src/main/java/software/xdev/saveactions/processors/java/JavaProcessor.java

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

3-
import software.xdev.saveactions.core.ExecutionMode;
4-
import software.xdev.saveactions.model.Action;
5-
import software.xdev.saveactions.processors.Processor;
6-
import software.xdev.saveactions.processors.SaveWriteCommand;
7-
import software.xdev.saveactions.processors.java.inspection.CustomLocalCanBeFinal;
8-
import software.xdev.saveactions.processors.java.inspection.SerializableHasSerialVersionUIDFieldInspectionWrapper;
93
import com.intellij.codeInspection.ExplicitTypeCanBeDiamondInspection;
104
import com.intellij.codeInspection.LocalInspectionTool;
11-
import software.xdev.saveactions.processors.java.inspection.CustomAccessCanBeTightenedInspection;
125
import com.intellij.codeInspection.visibility.VisibilityInspection;
136
import com.intellij.openapi.project.Project;
147
import com.intellij.psi.PsiFile;
@@ -17,7 +10,6 @@
1710
import com.siyeh.ig.maturity.SuppressionAnnotationInspection;
1811
import com.siyeh.ig.performance.MethodMayBeStaticInspection;
1912
import com.siyeh.ig.style.ControlFlowStatementWithoutBracesInspection;
20-
import software.xdev.saveactions.processors.java.inspection.CustomUnqualifiedStaticUsageInspection;
2113
import com.siyeh.ig.style.FieldMayBeFinalInspection;
2214
import com.siyeh.ig.style.SingleStatementInBlockInspection;
2315
import com.siyeh.ig.style.UnnecessaryFinalOnLocalVariableOrParameterInspection;
@@ -26,6 +18,14 @@
2618
import com.siyeh.ig.style.UnqualifiedFieldAccessInspection;
2719
import com.siyeh.ig.style.UnqualifiedMethodAccessInspection;
2820
import com.siyeh.ig.style.UnqualifiedStaticUsageInspection;
21+
import software.xdev.saveactions.core.ExecutionMode;
22+
import software.xdev.saveactions.model.Action;
23+
import software.xdev.saveactions.processors.Processor;
24+
import software.xdev.saveactions.processors.SaveWriteCommand;
25+
import software.xdev.saveactions.processors.java.inspection.CustomAccessCanBeTightenedInspection;
26+
import software.xdev.saveactions.processors.java.inspection.CustomLocalCanBeFinal;
27+
import software.xdev.saveactions.processors.java.inspection.SerializableHasSerialVersionUIDFieldInspectionWrapper;
28+
import software.xdev.saveactions.processors.java.inspection.style.CustomUnqualifiedStaticUsageInspection;
2929

3030
import java.util.Arrays;
3131
import java.util.EnumSet;
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package software.xdev.saveactions.processors.java.inspection;
1+
package software.xdev.saveactions.processors.java.inspection.style;
22

33
import com.intellij.psi.JavaResolveResult;
44
import com.intellij.psi.PsiClass;
@@ -23,6 +23,8 @@
2323
/**
2424
* Copy pasting because: cannot extend. Do not reformat (useful for diffs)
2525
*
26+
* @implNote Class needs to be inside a special package otherwise name resolution fails as seen in
27+
* {@link com.siyeh.ig.GroupDisplayNameUtil}
2628
* @see com.siyeh.ig.style.UnqualifiedStaticUsageInspection.UnqualifiedStaticCallVisitor
2729
*/
2830
public class CustomUnqualifiedStaticUsageInspection extends UnqualifiedStaticUsageInspection {

0 commit comments

Comments
 (0)