src/share/classes/com/sun/imageio/plugins/gif/GIFImageReader.java

Print this page
rev 10195 : 8048267: Replace uses of 'new Long()' with appropriate alternative across core classes
Reviewed-by: chegar, psandoz
Contributed-by: otaviojava@java.net

@@ -614,11 +614,11 @@
                 if (!skipImage()) {
                     --index;
                     return index;
                 }
 
-                Long l1 = new Long(stream.getStreamPosition());
+                Long l1 = stream.getStreamPosition();
                 imageStartPosition.add(l1);
                 ++index;
             }
         } catch (IOException e) {
             throw new IIOException("Couldn't seek!", e);