Issue #207 - Support javax.websocket version 1.1

+ Correcting jsr server PathParam static args sort issue
This commit is contained in:
Joakim Erdfelt 2016-08-19 19:28:16 -07:00
parent 1cf61d6df7
commit 9c1ac5fedd
1 changed files with 3 additions and 4 deletions

View File

@ -24,7 +24,6 @@ import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;
@ -131,7 +130,7 @@ public class JsrEndpointFunctions extends CommonEndpointFunctions<JsrSession>
* that needs it converted to an object.
* </p>
*/
protected static class StaticArg implements Comparator<StaticArg>
protected static class StaticArg implements Comparable<StaticArg>
{
public final String name;
public final String value;
@ -143,9 +142,9 @@ public class JsrEndpointFunctions extends CommonEndpointFunctions<JsrSession>
}
@Override
public int compare(StaticArg o1, StaticArg o2)
public int compareTo(StaticArg o)
{
return o1.name.compareTo(o2.name);
return this.name.compareTo(o.name);
}
}