Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
07e31878
Commit
07e31878
authored
8 years ago
by
Anna.Kozlova
Browse files
Options
Download
Email Patches
Plain Diff
test only: check method references (IDEA-164989)
parent
7431c27f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/java-analysis-impl/src/com/intellij/codeInspection/testOnly/TestOnlyInspection.java
+8
-0
.../intellij/codeInspection/testOnly/TestOnlyInspection.java
with
8 additions
and
0 deletions
+8
-0
java/java-analysis-impl/src/com/intellij/codeInspection/testOnly/TestOnlyInspection.java
+
8
-
0
View file @
07e31878
...
...
@@ -59,6 +59,14 @@ public class TestOnlyInspection extends BaseJavaBatchLocalInspectionTool {
validate
(
e
,
e
.
resolveMethod
(),
h
);
}
@Override
public
void
visitMethodReferenceExpression
(
PsiMethodReferenceExpression
expression
)
{
PsiElement
resolve
=
expression
.
resolve
();
if
(
resolve
instanceof
PsiMethod
)
{
validate
(
expression
,
(
PsiMethod
)
resolve
,
h
);
}
}
@Override
public
void
visitReferenceExpression
(
PsiReferenceExpression
reference
)
{
PsiElement
resolve
=
reference
.
resolve
();
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help