MethodPattern: NonNls annotations

GitOrigin-RevId: 227d1f0837dcc0b2af0a3ed5fb6fb96acbe2c786
This commit is contained in:
Tagir Valeev
2020-06-02 11:48:00 +03:00
committed by intellij-monorepo-bot
parent b720fb0c9a
commit 002caf8f57
2 changed files with 4 additions and 3 deletions
@@ -40,7 +40,6 @@ public final class GuessManagerImpl extends GuessManager {
initMethodPatterns();
}
@SuppressWarnings("HardCodedStringLiteral")
private void initMethodPatterns() {
// Collection
myMethodPatternMap.addPattern(new MethodPattern("add", 1, 0));
@@ -16,12 +16,14 @@
*/
package com.intellij.codeInsight.guess.impl;
import org.jetbrains.annotations.NonNls;
class MethodPattern{
public final String methodName;
public final @NonNls String methodName;
public final int parameterCount;
public final int parameterIndex; // -1 for return type
MethodPattern(String methodName, int parameterCount, int parameterIndex) {
MethodPattern(@NonNls String methodName, int parameterCount, int parameterIndex) {
this.methodName = methodName;
this.parameterCount = parameterCount;
this.parameterIndex = parameterIndex;