Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private static boolean isProxyOfSameInterfaces(Object arg, Class<?> proxyClass)

protected static class MethodTranslator {

private final Map<Method, Method> map = new HashMap<>();
private final Map<Method, Method> map;

public MethodTranslator(Class<?> delegate, Class<?>... methodSources) {

Expand All @@ -118,6 +118,8 @@ public MethodTranslator(Class<?> delegate, Class<?>... methodSources) {
methods.addAll(getMethods(sourceClass));
}

map = new HashMap<>(methods.size(), 1.0f);

for (Method method : methods) {

try {
Expand Down Expand Up @@ -173,4 +175,4 @@ public Method get(Method key) {
throw new IllegalStateException("Cannot find source method " + key);
}
}
}
}