Skip to content

Commit cf983c3

Browse files
committed
rename factory get method
1 parent dc819fc commit cf983c3

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

src/main/java/com/microsoft/azure/functions/worker/broker/JavaMethodExecutorImpl.java

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
package com.microsoft.azure.functions.worker.broker;
22

3-
import java.lang.invoke.WrongMethodTypeException;
4-
import java.lang.reflect.*;
5-
import java.net.*;
6-
import java.util.*;
7-
8-
import com.microsoft.azure.functions.OutputBinding;
93
import com.microsoft.azure.functions.worker.binding.*;
10-
import com.microsoft.azure.functions.worker.description.*;
11-
import com.microsoft.azure.functions.worker.reflect.*;
12-
import com.microsoft.azure.functions.rpc.messages.*;
13-
import org.apache.commons.lang3.exception.ExceptionUtils;
14-
import org.apache.commons.lang3.reflect.TypeUtils;
154

165
/**
176
* Used to executor of arbitrary Java method in any JAR using reflection.
@@ -21,7 +10,7 @@ public class JavaMethodExecutorImpl implements JavaMethodExecutor {
2110

2211
private static final JavaMethodExecutorImpl INSTANCE = new JavaMethodExecutorImpl();
2312

24-
public static JavaMethodExecutorImpl getExecutorInstance(){
13+
public static JavaMethodExecutorImpl getInstance(){
2514
return INSTANCE;
2615
}
2716

src/main/java/com/microsoft/azure/functions/worker/broker/JavaMethodExecutors.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public static JavaMethodExecutor createJavaMethodExecutor(ClassLoader classLoade
1010
throws MalformedURLException, ClassNotFoundException, NoSuchMethodException {
1111
if(SystemUtils.IS_JAVA_1_8) {
1212
WorkerLogManager.getSystemLogger().info("Loading JavaMethodExecutorImpl");
13-
return JavaMethodExecutorImpl.getExecutorInstance();
13+
return JavaMethodExecutorImpl.getInstance();
1414
} else {
1515
WorkerLogManager.getSystemLogger().info("Loading EnhancedJavaMethodExecutorImpl");
1616
return new EnhancedJavaMethodExecutorImpl(classLoader);

0 commit comments

Comments
 (0)