fix API: ошибка в методе RegisterCommands
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
<groupId>asys</groupId>
|
||||
<artifactId>api</artifactId>
|
||||
<version>0.9</version>
|
||||
<version>0.9.1</version>
|
||||
<packaging>bundle</packaging>
|
||||
|
||||
<dependencies>
|
||||
|
||||
@@ -14,8 +14,8 @@ import java.io.InputStream;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.Dictionary;
|
||||
import java.util.Hashtable;
|
||||
import java.util.List;
|
||||
import java.util.Vector;
|
||||
import java.util.Set;
|
||||
import java.util.TreeSet;
|
||||
|
||||
public class ASysUtils {
|
||||
public static ServiceRegistration<?> RegisterCommands(BundleContext bundleContext, Object commnadsObject, String scope) {
|
||||
@@ -59,7 +59,7 @@ public class ASysUtils {
|
||||
}
|
||||
|
||||
private static Dictionary<String, Object> getCommandListByAnnotationMethods(String scope, Class<?> clazz) {
|
||||
List<String> listCommand = new Vector<>();
|
||||
Set<String> listCommand = new TreeSet<>();
|
||||
|
||||
Method[] methods = clazz.getMethods();
|
||||
for(Method method : methods) {
|
||||
|
||||
Reference in New Issue
Block a user