Skip to content

Commit ecc5da4

Browse files
author
Alexandr Tereshkov
committed
code style
1 parent 7858e9a commit ecc5da4

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/com/magento/idea/magento2plugin/actions/comparator/CompareTemplateAction.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public void update(final @NotNull AnActionEvent event) {
6565
return;
6666
}
6767
final PsiFile psiFile = event.getData(PlatformDataKeys.PSI_FILE);
68-
selectedFile = psiFile != null ? psiFile.getVirtualFile() : null;
68+
selectedFile = psiFile != null ? psiFile.getVirtualFile() : null;//NOPMD
6969

7070
if (selectedFile != null
7171
&& !PHTML_EXTENSION.equals(selectedFile.getExtension())
@@ -103,15 +103,15 @@ public void update(final @NotNull AnActionEvent event) {
103103
}
104104

105105
@Override
106-
public void actionPerformed(@NotNull AnActionEvent e) {
107-
Project project = e.getProject();
108-
DiffRequestChain chain = createMutableChainFromFiles(project, selectedFile, originalFile);
106+
public void actionPerformed(final @NotNull AnActionEvent event) {
107+
final Project project = event.getProject();
108+
final DiffRequestChain chain = createMutableChainFromFiles(project, selectedFile, originalFile);
109109

110110
DiffManager.getInstance().showDiff(project, chain, DiffDialogHints.DEFAULT);
111111
}
112112

113113
@Nullable
114-
private String getArea(String fullPath) {
114+
private String getArea(final String fullPath) {
115115
final Pattern pattern = Pattern.compile(RegExUtil.ViewArea.AREA);
116116
final Matcher matcher = pattern.matcher(fullPath);
117117
String areaName = null;
@@ -122,25 +122,25 @@ private String getArea(String fullPath) {
122122
return areaName;
123123
}
124124

125-
private String getOriginalModuleName(Project project, PsiFile psiFile) {
125+
private String getOriginalModuleName(final Project project, final PsiFile psiFile) {
126126
final PsiDirectory directory = psiFile.getContainingDirectory();
127127

128128
return GetModuleNameByDirectoryUtil.execute(directory, project);
129129
}
130130

131131
@NotNull
132132
private MutableDiffRequestChain createMutableChainFromFiles(
133-
@Nullable Project project,
134-
@NotNull VirtualFile file1,
135-
@NotNull VirtualFile file2
133+
final @Nullable Project project,
134+
final @NotNull VirtualFile file1,
135+
final @NotNull VirtualFile file2
136136
) {
137-
DiffContentFactory contentFactory = DiffContentFactory.getInstance();
138-
DiffRequestFactory requestFactory = DiffRequestFactory.getInstance();
137+
final DiffContentFactory contentFactory = DiffContentFactory.getInstance();
138+
final DiffRequestFactory requestFactory = DiffRequestFactory.getInstance();
139139

140-
DiffContent content1 = contentFactory.create(project, file1);
141-
DiffContent content2 = contentFactory.create(project, file2);
140+
final DiffContent content1 = contentFactory.create(project, file1);
141+
final DiffContent content2 = contentFactory.create(project, file2);
142142

143-
MutableDiffRequestChain chain = BlankDiffWindowUtil.createBlankDiffRequestChain(
143+
final MutableDiffRequestChain chain = BlankDiffWindowUtil.createBlankDiffRequestChain(
144144
(DocumentContent)content1,
145145
(DocumentContent)content2,
146146
null

0 commit comments

Comments
 (0)