If you split the code like this, will the warning go away?
Scanner scanner = new Scanner(a);
scanner.useDelimiter(",");
scanner.close();
More Related Contents:
- Resource leak: ‘in’ is never closed
- What is the list of valid @SuppressWarnings warning names in Java?
- Unreachable code ; i dont understand why it is unreachable
- How can I create a memory leak in Java?
- Using HeapDumpOnOutOfMemoryError parameter for heap dump for JBoss
- Is there an easy way to attach source in Eclipse?
- Seeking useful Eclipse Java code templates [closed]
- Where can I view Tomcat log files in Eclipse?
- How do I view JRE’s source code in Eclipse?
- “Error occurred during initialization of VM; Could not reserve enough space for object heap” using -Xmx3G
- How to avoid ‘the local variable may not have been initialized’?
- How to make war file in Eclipse [duplicate]
- java.lang.NoClassDefFoundError: com.google.ads.AdView
- how to create jar file using eclipse
- How do I run Eclipse using Oracle’s new 1.7 JDK for the Mac?
- Stop spacebar keypress from triggering autocomplete in Eclipse
- Eclipse crashes at startup; Exit code=13
- How can I disable compiler warnings in Eclipse on a file specific basis? [duplicate]
- Eclipse does not highlight matching variables
- The import javax.servlet can’t be resolved [duplicate]
- Where is the Keytool application?
- Which @NonNull Java annotation to use [duplicate]
- How to change JAVA.HOME for Eclipse/ANT
- View classes dependency graph plugin? [closed]
- eclipse: how to debug a Java program as a .jar file?
- Remote deploy Tomcat webapp from Eclipse
- Eclipse EXCEPTION_ACCESS_VIOLATION crash
- how do you make getResourceAsStream work while debugging Java in Eclipse?
- How to include system dependencies in war built using maven
- The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files