Skip to content

Commit cef5ee3

Browse files
authored
Fixed PMD issues
1 parent d16d5dd commit cef5ee3

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/com/magento/idea/magento2plugin/actions/CopyMagentoPath.java

+10-10
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ public class CopyMagentoPath extends CopyPathProvider {
2828
};
2929

3030
@Override
31-
public void update(@NotNull AnActionEvent e) {
32-
final VirtualFile virtualFile = e.getData(PlatformDataKeys.VIRTUAL_FILE);
31+
public void update(@NotNull final AnActionEvent event) {
32+
final VirtualFile virtualFile = event.getData(PlatformDataKeys.VIRTUAL_FILE);
3333
if (virtualFile != null && virtualFile.isDirectory()) {
34-
e.getPresentation().setVisible(false);
34+
event.getPresentation().setVisible(false);
3535
}
3636
}
3737

3838
@Nullable
3939
@Override
4040
public String getPathToElement(
41-
@NotNull Project project,
42-
@Nullable VirtualFile virtualFile,
43-
@Nullable Editor editor
41+
@NotNull final Project project,
42+
@Nullable final VirtualFile virtualFile,
43+
@Nullable final Editor editor
4444
) {
4545
final PsiDirectory directory
4646
= PsiManager.getInstance(project).findFile(virtualFile).getContainingDirectory();
@@ -63,9 +63,9 @@ public String getPathToElement(
6363
return path;
6464
}
6565

66-
private int getIndexOf(StringBuilder fullPath, String path) {
67-
return fullPath.lastIndexOf(path) != -1
68-
? fullPath.lastIndexOf(path)
69-
: getIndexOf(fullPath, templatePaths[++index]);
66+
private int getIndexOf(final StringBuilder fullPath, final String path) {
67+
return fullPath.lastIndexOf(path) == -1
68+
? getIndexOf(fullPath, templatePaths[++index])
69+
: fullPath.lastIndexOf(path);
7070
}
7171
}

0 commit comments

Comments
 (0)