if (anon) {
String[] supported;
- ArrayList enabled = new ArrayList();
+ ArrayList<String> enabled = new ArrayList<String>();
supported = ssl.getSupportedCipherSuites();
if (supported[i].matches("TLS_DH_anon.*"))
enabled.add(supported[i]);
- ssl.setEnabledCipherSuites((String[])enabled.toArray(new String[0]));
+ ssl.setEnabledCipherSuites(enabled.toArray(new String[0]));
} else {
ssl.setEnabledCipherSuites(ssl.getSupportedCipherSuites());
}
}
private static int[] convertByteArrayToIntArray(byte[] bytes) {
vlog.info("convertByteArrayToIntArray");
- ArrayList integers = new ArrayList();
+ ArrayList<Integer> integers = new ArrayList<Integer>();
for (int index = 0; index < bytes.length; index += 4) {
byte[] fourBytes = new byte[4];
fourBytes[0] = bytes[index];
}
int[] ints = new int[bytes.length/4];
for (int index = 0; index < integers.size() ; index++) {
- ints[index] = ((Integer)integers.get(index)).intValue();
+ ints[index] = (integers.get(index)).intValue();
}
return ints;
}
}
clipboardDialog.setSendingEnabled(viewer.sendClipboard.getValue());
- menuKey = (int)(options.menuKey.getSelectedIndex()+0xFFBE);
- F8Menu.f8.setLabel("Send F"+(menuKey-Keysyms.F1+1));
+ menuKey = (options.menuKey.getSelectedIndex()+0xFFBE);
+ F8Menu.f8.setText("Send F"+(menuKey-Keysyms.F1+1));
shared = options.shared.isSelected();
setShared(shared);
if (cp.width != desktop.scaledWidth ||
cp.height != desktop.scaledHeight) {
int sx = (desktop.scaleWidthRatio == 1.00)
- ? ev.getX() : (int)Math.floor(ev.getX()/(float)desktop.scaleWidthRatio);
+ ? ev.getX() : (int)Math.floor(ev.getX()/desktop.scaleWidthRatio);
int sy = (desktop.scaleHeightRatio == 1.00)
- ? ev.getY() : (int)Math.floor(ev.getY()/(float)desktop.scaleHeightRatio);
+ ? ev.getY() : (int)Math.floor(ev.getY()/desktop.scaleHeightRatio);
ev.translatePoint(sx - ev.getX(), sy - ev.getY());
writer().writePointerEvent(new Point(ev.getX(),ev.getY()), buttonMask);
} else {
}
}
}
- scaleWidthRatio = (float)((float)scaledWidth / (float)cc.cp.width);
- scaleHeightRatio = (float)((float)scaledHeight / (float)cc.cp.height);
+ scaleWidthRatio = (float)scaledWidth / (float)cc.cp.width;
+ scaleHeightRatio = (float)scaledHeight / (float)cc.cp.height;
}
synchronized public void paintComponent(Graphics g) {
cursorVisible = true;
if (softCursor != null) return;
- int cursorLeft = (int)cursor.hotspot.x;
- int cursorTop = (int)cursor.hotspot.y;
+ int cursorLeft = cursor.hotspot.x;
+ int cursorTop = cursor.hotspot.y;
int cursorRight = cursorLeft + cursor.width();
int cursorBottom = cursorTop + cursor.height();
CP = cp
JC = javac
-JCFLAGS = -target 1.5 -classpath ../../../
+JCFLAGS = -target 1.5 -Xlint:all,-serial,-cast -classpath ../../../
JAR = jar
ARCHIVE = VncViewer.jar
MANIFEST = MANIFEST.MF