diff options
Diffstat (limited to 'java/com/tigervnc/rfb/CConnection.java')
-rw-r--r-- | java/com/tigervnc/rfb/CConnection.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/com/tigervnc/rfb/CConnection.java b/java/com/tigervnc/rfb/CConnection.java index 959f8138..a9230285 100644 --- a/java/com/tigervnc/rfb/CConnection.java +++ b/java/com/tigervnc/rfb/CConnection.java @@ -122,7 +122,7 @@ abstract public class CConnection extends CMsgHandler { throwConnFailedException(); } else if (secType == Security.secTypeNone || secType == Security.secTypeVncAuth) { - Iterator i; + Iterator<Integer> i; for (i = secTypes.iterator(); i.hasNext(); ) { int refType = (Integer)i.next(); if (refType == secType) { @@ -146,7 +146,7 @@ abstract public class CConnection extends CMsgHandler { if (nServerSecTypes == 0) throwConnFailedException(); - Iterator j; + Iterator<Integer> j; for (int i = 0; i < nServerSecTypes; i++) { int serverSecType = is.readU8(); |