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
8335e93b
Commit
8335e93b
authored
7 years ago
by
Bas Leijdekkers
Browse files
Options
Download
Email Patches
Plain Diff
SSR: let setResult() return its value to reduce boilerplate
parent
742ed5e4
Branches unavailable
Tags unavailable
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
java/structuralsearch-java/src/com/intellij/structuralsearch/impl/matcher/JavaMatchingVisitor.java
+99
-202
...ij/structuralsearch/impl/matcher/JavaMatchingVisitor.java
platform/structuralsearch/source/com/intellij/structuralsearch/impl/matcher/GlobalMatchingVisitor.java
+6
-4
.../structuralsearch/impl/matcher/GlobalMatchingVisitor.java
with
105 additions
and
206 deletions
+105
-206
java/structuralsearch-java/src/com/intellij/structuralsearch/impl/matcher/JavaMatchingVisitor.java
+
99
-
202
View file @
8335e93b
This diff is collapsed.
Click to expand it.
platform/structuralsearch/source/com/intellij/structuralsearch/impl/matcher/GlobalMatchingVisitor.java
+
6
-
4
View file @
8335e93b
// Copyright 2000-201
7
JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-201
8
JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package
com.intellij.structuralsearch.impl.matcher
;
import
com.intellij.dupLocator.AbstractMatchingVisitor
;
...
...
@@ -18,10 +18,11 @@ import com.intellij.structuralsearch.impl.matcher.handlers.MatchingHandler;
import
com.intellij.structuralsearch.impl.matcher.handlers.SubstitutionHandler
;
import
com.intellij.structuralsearch.plugin.ui.Configuration
;
import
com.intellij.structuralsearch.plugin.util.SmartPsiPointer
;
import
java.util.HashMap
;
import
org.jetbrains.annotations.Contract
;
import
org.jetbrains.annotations.NotNull
;
import
org.jetbrains.annotations.Nullable
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -52,8 +53,9 @@ public class GlobalMatchingVisitor extends AbstractMatchingVisitor {
return
myResult
;
}
public
void
setResult
(
boolean
result
)
{
this
.
myResult
=
result
;
@Contract
(
"true->true;false->false"
)
public
boolean
setResult
(
boolean
result
)
{
return
this
.
myResult
=
result
;
}
public
MatchContext
getMatchContext
()
{
...
...
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