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

Commit cbd85af

Browse files
committed
Merge branch 'backport_intellij_2017.2' into backport_intellij_2017.1
2 parents 7010da1 + 6643537 commit cbd85af

File tree

237 files changed

+5175
-2195
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

237 files changed

+5175
-2195
lines changed

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ lombok-intellij-plugin [![Donate](https://www.paypal.com/en_US/i/btn/btn_donateC
1313

1414
Provides support for lombok annotations to write great Java code with IntelliJ IDEA.
1515

16-
**Last version (0.25) released on 01.05.2019**
16+
**Last version (0.27) released on 03.10.2019**
1717

18-
Thirty version of plugin released. Contains a lot of bugfixes and some new features!
18+
32nd version of plugin released. Contains a lot of bugfixes and long awaiting feature @SuperBuilder!
1919

2020
Install it automatically from IntelliJ Idea plugin repository.
2121

22-
Tested and supports IntelliJ versions: 2016.2, 2016.3, 2017.X, 2018.X, 2019.1
22+
Tested and supports IntelliJ versions: 2016.2, 2016.3, 2017.X, 2018.X, 2019.1 and 2019.2
2323

2424
Last support for IntelliJ 15.0.6 and 2016.1 by plugin version 0.19!
2525

@@ -56,8 +56,6 @@ Features / Supports
5656

5757
Many features of the plugin (including warnings) could be disabled through per-project settings.
5858

59-
__Note:__ To make use of plugin features like `@UtilityClass` and for _better_ `val` and `Value` support while using IntelliJ 14.1 - 2016.1, you need to enable "Runtime patching" in Plugin settings. This is __not__ needed with 2016.2 and higher.
60-
6159
Installation
6260
------------
6361
### Plugin Installation
@@ -87,7 +85,7 @@ In your `build.gradle`:
8785
```groovy
8886
// 'compile' can be changed to 'compileOnly' for Gradle 2.12+
8987
// or 'provided' if using 'propdeps' plugin from SpringSource
90-
compile "org.projectlombok:lombok:1.18.8"
88+
compile "org.projectlombok:lombok:1.18.10"
9189
```
9290

9391
##### Maven
@@ -97,7 +95,7 @@ In your `pom.xml`:
9795
<dependency>
9896
<groupId>org.projectlombok</groupId>
9997
<artifactId>lombok</artifactId>
100-
<version>1.18.8</version>
98+
<version>1.18.10</version>
10199
<scope>provided</scope>
102100
</dependency>
103101
</dependencies>
@@ -106,7 +104,7 @@ In your `pom.xml`:
106104
##### Ivy
107105
In your `ivy.xml`:
108106
```xml
109-
<dependency org="org.projectlombok" name="lombok" rev="1.18.8" conf="build" />
107+
<dependency org="org.projectlombok" name="lombok" rev="1.18.10" conf="build" />
110108
```
111109

112110
IntelliJ and Eclipse compiler

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ dependencies {
8888
lombok group: 'org.projectlombok', name: 'lombok', version: '1.18.10', classifier: 'sources', ext: 'jar'
8989

9090
testCompile group: 'junit', name: 'junit', version: '4.12'
91-
testCompile group: 'org.mockito', name: 'mockito-core', version: '3.0.0'
91+
testCompile group: 'org.mockito', name: 'mockito-core', version: '3.1.0'
9292
}
9393

9494
// Tasks

gradle.properties

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
ideaVersion=2017.1
66
#ideaVersion=2017.1.5
77
#
8-
lastReleaseVersion=2019.1
9-
#
108
pluginGroup=de.plushnikov.intellij.plugin
119
pluginName=lombok-plugin
1210
pluginVersion=0.27
Binary file not shown.

parts/pluginChanges.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<li>Fixed #526: StackOverflow with LombokLightParameterListBuilder.equals</li>
1010
<li>Fixed #660: Performance problems in autocomplete/code analysis</li>
1111
<li>Fixed #663: Method with varArgs gives an error in IntelliJ</li>
12+
<li>Fixed #670: Non-idempotent computation issue with @Delegate usages</li>
1213
<li>Fixed #673: Add support for @With</li>
1314
</ol>
1415
</li>

parts/pluginDescription.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ <h1>IntelliJ Lombok plugin</h1>
3535
<li><a href="https://projectlombok.org/features/experimental/Wither.html">@Wither</a></li>
3636
<li><a href="https://projectlombok.org/features/With.html">@With</a></li>
3737
<li><a href="https://projectlombok.org/features/SneakyThrows.html">@SneakyThrows</a></li>
38-
<li><a href="https://projectlombok.org/features/val.html">from Intellij 14.1 @val</a></li>
39-
<li><a href="https://projectlombok.org/features/var.html">from Intellij 15.0.2 @var</a></li>
40-
<li><a href="https://projectlombok.org/features/experimental/var.html">from Intellij 14.1 @var</a></li>
41-
<li><a href="https://projectlombok.org/features/experimental/UtilityClass.html">from Intellij 2016.2 @UtilityClass</a></li>
38+
<li><a href="https://projectlombok.org/features/val.html">@val</a></li>
39+
<li><a href="https://projectlombok.org/features/var.html">@var</a></li>
40+
<li><a href="https://projectlombok.org/features/experimental/var.html">experimental @var</a></li>
41+
<li><a href="https://projectlombok.org/features/experimental/UtilityClass.html">@UtilityClass</a></li>
4242
<li><a href="https://projectlombok.org/features/configuration.html">Lombok config system</a></li>
4343
<li>Code inspections</li>
4444
<li>Refactoring actions (lombok and delombok)</li>

src/main/java/de/plushnikov/intellij/plugin/Version.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ public interface Version {
99
/**
1010
* Current version of lombok plugin
1111
*/
12-
String LAST_LOMBOK_VERSION = "1.18.8";
12+
String LAST_LOMBOK_VERSION = "1.18.10";
1313
}

src/main/java/de/plushnikov/intellij/plugin/action/generate/LombokGenerateConstructorHandler.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import com.intellij.codeInsight.generation.GenerationInfo;
77
import com.intellij.codeInsight.generation.PsiFieldMember;
88
import com.intellij.codeInsight.generation.PsiGenerationInfo;
9-
import com.intellij.openapi.extensions.Extensions;
109
import com.intellij.psi.PsiClass;
1110
import com.intellij.psi.PsiField;
1211
import com.intellij.psi.PsiModifier;
@@ -27,7 +26,7 @@ public class LombokGenerateConstructorHandler extends GenerateConstructorHandler
2726
protected ClassMember[] getAllOriginalMembers(PsiClass aClass) {
2827
PsiField[] fields = aClass.getFields();
2928
ArrayList<ClassMember> array = new ArrayList<>();
30-
ImplicitUsageProvider[] implicitUsageProviders = Extensions.getExtensions(ImplicitUsageProvider.EP_NAME);
29+
ImplicitUsageProvider[] implicitUsageProviders = ImplicitUsageProvider.EP_NAME.getExtensions();
3130
fieldLoop:
3231
for (PsiField field : fields) {
3332
if (field.hasModifierProperty(PsiModifier.STATIC)) {

src/main/java/de/plushnikov/intellij/plugin/language/LombokConfigParserDefinition.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public PsiFile createFile(FileViewProvider viewProvider) {
5858
return new LombokConfigFile(viewProvider);
5959
}
6060

61+
@Override
6162
public SpaceRequirements spaceExistanceTypeBetweenTokens(ASTNode left, ASTNode right) {
6263
return SpaceRequirements.MAY;
6364
}

src/main/java/de/plushnikov/intellij/plugin/processor/SynchronizedProcessor.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import com.intellij.psi.PsiMethod;
1010
import com.intellij.psi.PsiModifier;
1111
import com.intellij.psi.PsiType;
12-
import com.intellij.psi.search.GlobalSearchScope;
1312
import com.intellij.psi.util.PsiTreeUtil;
1413
import de.plushnikov.intellij.plugin.problem.LombokProblem;
1514
import de.plushnikov.intellij.plugin.problem.ProblemNewBuilder;
@@ -63,7 +62,7 @@ public Collection<LombokProblem> verifyAnnotation(@NotNull PsiAnnotation psiAnno
6362
PsiQuickFixFactory.createModifierListFix(lockField, PsiModifier.FINAL, true, false));
6463
}
6564
} else {
66-
final PsiClassType javaLangObjectType = PsiType.getJavaLangObject(containingClass.getManager(), GlobalSearchScope.allScope(containingClass.getProject()));
65+
final PsiClassType javaLangObjectType = PsiType.getJavaLangObject(containingClass.getManager(), containingClass.getResolveScope());
6766

6867
problemNewBuilder.addError(String.format("The field %s does not exist.", lockFieldName),
6968
PsiQuickFixFactory.createNewFieldFix(containingClass, lockFieldName, javaLangObjectType, "new Object()", PsiModifier.PRIVATE, PsiModifier.FINAL));

0 commit comments

Comments
 (0)