Permalink
Browse files

removed compiler warning re varargs

  • Loading branch information...
1 parent 0dce1a6 commit 8277da8e7127123ac9819f8ca8406aa3b861f61e Bela Ban committed Dec 19, 2011
@@ -33,7 +33,7 @@ public static void testFlags() {
assert !(m1.isFlagSet(Message.OOB));
assert m1.getFlags() == 0;
- m1.setFlag(null);
+ m1.setFlag((Message.Flag[])null);
assert !m1.isFlagSet(Message.OOB);
assert !m1.isFlagSet(null);
@@ -42,7 +42,7 @@ public static void testFlags() {
public static void testSettingMultipleFlags() {
Message msg=new Message();
- msg.setFlag(null);
+ msg.setFlag((Message.Flag[])null);
assert msg.getFlags() == 0;
msg.setFlag(Message.OOB, Message.NO_FC, null, Message.DONT_BUNDLE);
@@ -164,7 +164,7 @@ public String outerMethod() throws Exception {
log("**** outerMethod() received, calling innerMethod() on all members");
MethodCall call = new MethodCall("innerMethod", new Object[0], new Class[0]);
// RspList rspList = disp.callRemoteMethods(null, call, GroupResponseMode.GET_ALL, 5000);
- RequestOptions opts=new RequestOptions(ResponseMode.GET_ALL, 0, false, null, null);
+ RequestOptions opts=new RequestOptions(ResponseMode.GET_ALL, 0, false, null, (Message.Flag[])null);
opts.setFlags(Message.OOB);
RspList<String> rspList = disp.callRemoteMethods(null, call, opts);
List<String> results = rspList.getResults();

0 comments on commit 8277da8

Please sign in to comment.