Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Commit

Permalink
merged with changes from master
Browse files Browse the repository at this point in the history
  • Loading branch information
mplushnikov committed Oct 3, 2019
1 parent 778c9b0 commit fef33cf
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 23 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# https://www.jetbrains.com/intellij-repository/releases
# https://www.jetbrains.com/intellij-repository/snapshots
#
#ideaVersion=2018.1
ideaVersion=2018.1
#ideaVersion=2018.2
#ideaVersion=2018.3.5
#ideaVersion=2019.1
ideaVersion=2019.1.4
#ideaVersion=2019.1.4
#
pluginGroup=de.plushnikov.intellij.plugin
pluginName=lombok-plugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class LombokGenerateConstructorHandler extends GenerateConstructorHandler
protected ClassMember[] getAllOriginalMembers(PsiClass aClass) {
PsiField[] fields = aClass.getFields();
ArrayList<ClassMember> array = new ArrayList<>();
List<ImplicitUsageProvider> implicitUsageProviders = ImplicitUsageProvider.EP_NAME.getExtensionList();
ImplicitUsageProvider[] implicitUsageProviders = ImplicitUsageProvider.EP_NAME.getExtensions();
fieldLoop:
for (PsiField field : fields) {
if (field.hasModifierProperty(PsiModifier.STATIC)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ public PsiFile createFile(FileViewProvider viewProvider) {
return new LombokConfigFile(viewProvider);
}

@Override
public SpaceRequirements spaceExistanceTypeBetweenTokens(ASTNode left, ASTNode right) {
return SpaceRequirements.MAY;
}

@NotNull
public PsiElement createElement(ASTNode node) {
return LombokConfigTypes.Factory.createElement(node);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.psi.PsiFile;
import com.intellij.testFramework.LightProjectDescriptor;
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase;
import com.intellij.testFramework.fixtures.DefaultLightProjectDescriptor;
import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase;
import com.intellij.util.PathUtil;
import junit.framework.ComparisonFailure;
import org.jetbrains.annotations.NotNull;

import java.io.File;
import java.io.IOException;

import static com.intellij.testFramework.LightPlatformTestCase.getModule;

public abstract class AbstractLombokLightCodeInsightTestCase extends LightCodeInsightFixtureTestCase {

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
package de.plushnikov.intellij.plugin.inspection;

import com.intellij.openapi.util.registry.Registry;
import com.intellij.testFramework.LightProjectDescriptor;
import com.siyeh.ig.LightJavaInspectionTestCase;
import de.plushnikov.intellij.plugin.LombokTestUtil;
import com.intellij.testFramework.PsiTestUtil;
import com.intellij.testFramework.fixtures.DefaultLightProjectDescriptor;
import com.intellij.util.PathUtil;
import com.siyeh.ig.LightInspectionTestCase;
import de.plushnikov.intellij.plugin.LombokTestUtil;
import org.jetbrains.annotations.NotNull;

import static com.intellij.testFramework.LightPlatformTestCase.getModule;

public abstract class LombokInspectionTest extends LightInspectionTestCase {
static final String TEST_DATA_INSPECTION_DIRECTORY = "testData/inspection";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package de.plushnikov.intellij.plugin.postfix;

import com.intellij.openapi.util.registry.Registry;
import com.intellij.psi.PsiDocumentManager;
import com.intellij.psi.PsiMethod;
import de.plushnikov.intellij.plugin.AbstractLombokLightCodeInsightTestCase;
Expand All @@ -12,8 +11,6 @@
public class NonIdempotentComputationIssue670Test extends AbstractLombokLightCodeInsightTestCase {

public void testIssue670() {
Registry.get("platform.random.idempotence.check.rate").setValue(1, getTestRootDisposable());

myFixture.configureByFile((getBasePath() + "/postfix/issue670/" + getTestName(false)) + ".java");

final PsiMethod[] firstCallGetMethods = myFixture.findClass("Issue670").getMethods();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
import com.intellij.psi.PsiMethod;
import com.intellij.psi.PsiModifier;
import com.intellij.psi.util.PsiTreeUtil;
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase;
import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase;

/**
* @author Florian Böhm
*/
public class UtilityClassModifierTest extends LightJavaCodeInsightFixtureTestCase {
public class UtilityClassModifierTest extends LightCodeInsightFixtureTestCase {

@Override
protected String getTestDataPath() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
import com.intellij.psi.PsiModifier;
import com.intellij.psi.PsiType;
import com.intellij.psi.util.PsiTreeUtil;
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase;
import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase;

/**
* @author Alexej Kubarev
*/
public class ValModifierTest extends LightJavaCodeInsightFixtureTestCase {
public class ValModifierTest extends LightCodeInsightFixtureTestCase {

@Override
protected String getTestDataPath() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
import com.intellij.psi.PsiModifier;
import com.intellij.psi.PsiModifierList;
import com.intellij.psi.util.PsiTreeUtil;
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase;
import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase;

/**
* @author Alexej Kubarev
*/
public class ValueModifierTest extends LightJavaCodeInsightFixtureTestCase {
public class ValueModifierTest extends LightCodeInsightFixtureTestCase {

@Override
protected String getTestDataPath() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
import com.intellij.psi.PsiModifier;
import com.intellij.psi.PsiPrimitiveType;
import com.intellij.psi.util.PsiTreeUtil;
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase;
import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase;

/**
* @author Alexej Kubarev
*/
public class VarModifierTest extends LightJavaCodeInsightFixtureTestCase {
public class VarModifierTest extends LightCodeInsightFixtureTestCase {

@Override
protected String getTestDataPath() {
Expand Down

0 comments on commit fef33cf

Please sign in to comment.