diff options
Diffstat (limited to 'java/com/tigervnc/rfb/ScreenSet.java')
-rw-r--r-- | java/com/tigervnc/rfb/ScreenSet.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/java/com/tigervnc/rfb/ScreenSet.java b/java/com/tigervnc/rfb/ScreenSet.java index b848b132..d20374f6 100644 --- a/java/com/tigervnc/rfb/ScreenSet.java +++ b/java/com/tigervnc/rfb/ScreenSet.java @@ -35,7 +35,7 @@ public class ScreenSet { public final void add_screen(Screen screen) { screens.add(screen); } public final void remove_screen(int id) { - for (Iterator iter = screens.iterator(); iter.hasNext(); ) { + for (Iterator<Screen> iter = screens.iterator(); iter.hasNext(); ) { Screen refScreen = (Screen)iter.next(); if (refScreen.id == id) iter.remove(); @@ -53,7 +53,7 @@ public class ScreenSet { fb_rect.setXYWH(0, 0, fb_width, fb_height); - for (Iterator iter = screens.iterator(); iter.hasNext(); ) { + for (Iterator<Screen> iter = screens.iterator(); iter.hasNext(); ) { Screen refScreen = (Screen)iter.next(); if (refScreen.dimensions.is_empty()) return false; @@ -68,7 +68,7 @@ public class ScreenSet { } public final void debug_print() { - for (Iterator iter = screens.iterator(); iter.hasNext(); ) { + for (Iterator<Screen> iter = screens.iterator(); iter.hasNext(); ) { Screen refScreen = (Screen)iter.next(); vlog.error(" "+refScreen.id+" (0x"+refScreen.id+"): "+ refScreen.dimensions.width()+"x"+refScreen.dimensions.height()+ |