Archived
0

fix API: ошибка в методе RegisterCommands

This commit is contained in:
2016-08-17 01:56:20 +03:00
parent fd37e98dfb
commit 6902107f6d
2 changed files with 4 additions and 4 deletions

View File

@@ -19,7 +19,7 @@
<groupId>asys</groupId>
<artifactId>api</artifactId>
<version>0.9</version>
<version>0.9.1</version>
<packaging>bundle</packaging>
<dependencies>

View File

@@ -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) {