mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Cleanup (typos; formatting)
GitOrigin-RevId: f38fbd0d4604243a194a7d553e8abe4e7d293169
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f39d83cb3c
commit
e41dfc50b4
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2017 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-2019 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.spellchecker;
|
||||
|
||||
import com.intellij.codeInsight.AnnotationUtil;
|
||||
@@ -39,7 +39,7 @@ public class LiteralExpressionTokenizer extends EscapeSequenceTokenizer<PsiLiter
|
||||
text = null;
|
||||
}
|
||||
|
||||
if (StringUtil.isEmpty(text) || text.length() <= 2) { // optimisation to avoid expensive injection check
|
||||
if (StringUtil.isEmpty(text) || text.length() <= 2) { // optimization to avoid expensive injection check
|
||||
return;
|
||||
}
|
||||
if (InjectedLanguageUtil.hasInjections(literalExpression)) return;
|
||||
|
||||
+3
-17
@@ -1,18 +1,4 @@
|
||||
/*
|
||||
* Copyright 2000-2014 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.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
// Copyright 2000-2019 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.psi.impl.source.resolve.reference.impl.manipulators;
|
||||
|
||||
import com.intellij.openapi.util.TextRange;
|
||||
@@ -75,9 +61,9 @@ public class StringLiteralManipulator extends AbstractElementManipulator<PsiLite
|
||||
isQuoted = type == JavaTokenType.STRING_LITERAL || type == JavaTokenType.CHARACTER_LITERAL;
|
||||
}
|
||||
else {
|
||||
final Object value = element.getValue();
|
||||
Object value = element.getValue();
|
||||
isQuoted = value instanceof String || value instanceof Character;
|
||||
}
|
||||
return isQuoted ? new TextRange(1, Math.max(1, length - 1)) : TextRange.from(0, length);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user