Fri, 28 Jan 2011 16:54:18 -0800
7015530: Reiterate API specializations in javax.lang.model.elment subinterfaces
Reviewed-by: jjg
darcy@840 | 1 | /* |
darcy@840 | 2 | * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
darcy@840 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
darcy@840 | 4 | * |
darcy@840 | 5 | * This code is free software; you can redistribute it and/or modify it |
darcy@840 | 6 | * under the terms of the GNU General Public License version 2 only, as |
darcy@840 | 7 | * published by the Free Software Foundation. |
darcy@840 | 8 | * |
darcy@840 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
darcy@840 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
darcy@840 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
darcy@840 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
darcy@840 | 13 | * accompanied this code). |
darcy@840 | 14 | * |
darcy@840 | 15 | * You should have received a copy of the GNU General Public License version |
darcy@840 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
darcy@840 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
darcy@840 | 18 | * |
darcy@840 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
darcy@840 | 20 | * or visit www.oracle.com if you need additional information or have any |
darcy@840 | 21 | * questions. |
darcy@840 | 22 | */ |
darcy@840 | 23 | |
darcy@840 | 24 | // key: compiler.err.try.resource.trailing.semi |
darcy@840 | 25 | |
darcy@840 | 26 | class TryResoureTrailingSemi implements AutoCloseable { |
darcy@840 | 27 | public static void main(String... args) { |
darcy@840 | 28 | try(TryResoureTrailingSemi r = new TryResoureTrailingSemi();) { |
darcy@840 | 29 | System.out.println(r.toString()); |
darcy@840 | 30 | } |
darcy@840 | 31 | } |
darcy@840 | 32 | |
darcy@840 | 33 | @Override |
darcy@840 | 34 | public void close() {return;} |
darcy@840 | 35 | } |