Fix compile error with Java 1.6

This commit is contained in:
Andrew Bettison 2017-09-27 12:43:38 +09:30
parent f4ef1e59c7
commit 5047e20bf0

View File

@ -57,7 +57,7 @@ public class MeshMBCommon {
}
public static int alterSubscription(ServalDHttpConnectionFactory connector, Subscriber id, SubscriptionAction action, Subscriber peer, String name) throws ServalDInterfaceException, IOException {
Vector<ServalDHttpConnectionFactory.QueryParam> parms = new Vector<>();
Vector<ServalDHttpConnectionFactory.QueryParam> parms = new Vector<ServalDHttpConnectionFactory.QueryParam>();
parms.add(new ServalDHttpConnectionFactory.QueryParam("sender", peer.sid.toHex()));
if (name!=null && !"".equals(name))
parms.add(new ServalDHttpConnectionFactory.QueryParam("name", name));