test/tools/javac/diags/examples/ResourceClosed.java

changeset 743
6a99b741a1b0
parent 610
3640b60bd0f6
child 2525
2eb010b6cb22
equal deleted inserted replaced
742:fdc67f5170e9 743:6a99b741a1b0
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any 20 * or visit www.oracle.com if you need additional information or have any
21 * questions. 21 * questions.
22 */ 22 */
23 23
24 // key: compiler.warn.twr.explicit.close.call 24 // key: compiler.warn.try.explicit.close.call
25 // options: -Xlint:arm 25 // options: -Xlint:try
26 26
27 import java.io.*; 27 import java.io.*;
28 28
29 class ResourceClosed { 29 class ResourceClosed {
30 void m() throws IOException { 30 void m() throws IOException {

mercurial