Skip to content

Commit

Permalink
removed fix offending in a newer versions of IJ
Browse files Browse the repository at this point in the history
  • Loading branch information
musketyr committed Jul 31, 2023
1 parent 19bd2bf commit 7175512
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {

if (!project.hasProperty('publishPluginChannels')) ext.publishPluginChannels = ''
if (!project.hasProperty('publishPluginToken')) ext.publishPluginToken = '**UNDEFINED**'
if (!project.hasProperty('ideVersion')) ext.ideVersion = 'IC-2022.3'
if (!project.hasProperty('ideVersion')) ext.ideVersion = 'IC-2023.2'

wrapper {
gradleVersion = '8.0.2'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package org.codenarc.idea.inspections.design;

import com.intellij.codeInsight.daemon.impl.quickfix.AddDefaultConstructorFix;
import com.intellij.codeInspection.LocalQuickFix;
import com.intellij.psi.PsiClass;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile;
import com.intellij.psi.PsiModifier;
import com.intellij.util.containers.JBIterable;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import javax.annotation.Generated;
Expand Down Expand Up @@ -70,9 +68,8 @@ public boolean isEnhancedMode() {
if (theClass == null) {
return Collections.singletonList(new GrRemoveModifierFix(PsiModifier.ABSTRACT));
}
return Arrays.<LocalQuickFix>asList(
new GrModifierFix(theClass, PsiModifier.ABSTRACT, true, false, GrModifierFix.MODIFIER_LIST_CHILD),
new AddDefaultConstructorFix(theClass, PsiModifier.PROTECTED)
return Collections.singleton(
new GrModifierFix(theClass, PsiModifier.ABSTRACT, true, false, GrModifierFix.MODIFIER_LIST_CHILD)
);
}

Expand Down

0 comments on commit 7175512

Please sign in to comment.