mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
SSR: remove unnecessary parameter
This commit is contained in:
+3
-3
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
* Copyright 2000-2017 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -50,9 +50,9 @@ public class GuavaOptionalConversionUtil {
|
||||
final PsiExpression expression = expressions[0];
|
||||
Matcher matcher = new Matcher(methodCall.getProject());
|
||||
final MatchOptions options = new MatchOptions();
|
||||
options.setSearchPattern(GuavaOptionalConversionRule.OPTIONAL_CONVERTOR_PATTERN);
|
||||
options.setFileType(StdFileTypes.JAVA);
|
||||
final List<MatchResult> results =
|
||||
matcher.testFindMatches(expression.getText(), GuavaOptionalConversionRule.OPTIONAL_CONVERTOR_PATTERN, options, false);
|
||||
final List<MatchResult> results = matcher.testFindMatches(expression.getText(), options, false);
|
||||
if (!results.isEmpty()) {
|
||||
final MatchResult result = results.get(0);
|
||||
if (result.getStart() == 0 && result.getEnd() == -1) {
|
||||
|
||||
Reference in New Issue
Block a user