mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
MethodPatternMap generified
This commit is contained in:
+2
-2
@@ -19,13 +19,13 @@ package com.intellij.codeInsight.guess.impl;
|
||||
import java.util.HashMap;
|
||||
|
||||
class MethodPatternMap {
|
||||
private final HashMap myMethodNameToPatternsMap = new HashMap();
|
||||
private final HashMap<String, MethodPattern> myMethodNameToPatternsMap = new HashMap<>();
|
||||
|
||||
public void addPattern(MethodPattern pattern){
|
||||
myMethodNameToPatternsMap.put(pattern.methodName + "#" + pattern.parameterCount, pattern);
|
||||
}
|
||||
|
||||
public MethodPattern findPattern(String name, int parameterCount){
|
||||
return (MethodPattern)myMethodNameToPatternsMap.get(name + "#" + parameterCount);
|
||||
return myMethodNameToPatternsMap.get(name + "#" + parameterCount);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user