Skip to content

Commit

Permalink
backported some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mplushnikov committed Aug 30, 2020
1 parent 3a807ed commit d91fe78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package de.plushnikov.intellij.plugin.lombokconfig;

import com.google.common.annotations.VisibleForTesting;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.components.ServiceManager;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.text.StringUtil;
Expand Down Expand Up @@ -127,7 +128,7 @@ private String discoverProperty(@NotNull ConfigKey configKey, @NotNull String ca

@VisibleForTesting
protected FileBasedIndex getFileBasedIndex() {
return ServiceManager.getService(FileBasedIndex.class);
return ApplicationManager.getApplication().getComponent(FileBasedIndex.class);
}

@Nullable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public void apply() {
ProjectSettings.setEnabled(myProject, ProjectSettings.IS_MISSING_LOMBOK_CHECK_ENABLED, myMissingLombokWarning.isSelected());
ProjectSettings.setEnabled(myProject, ProjectSettings.IS_ANNOTATION_PROCESSING_CHECK_ENABLED, myAnnotationProcessingWarning.isSelected());

LombokProcessorProvider lombokProcessorProvider = myProject.getService(LombokProcessorProvider.class);
LombokProcessorProvider lombokProcessorProvider = LombokProcessorProvider.getInstance(myProject);
lombokProcessorProvider.initProcessors();
}

Expand Down

0 comments on commit d91fe78

Please sign in to comment.