9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
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
21 * questions.
22 */
23
24 /**
25 * @test
26 * @bug 8033961
27 * @summary Verify that all LintCategories have their descriptions filled.
28 * @modules jdk.compiler/com.sun.tools.javac.code
29 * jdk.compiler/com.sun.tools.javac.util
30 */
31
32 import java.lang.reflect.Layer;
33 import java.lang.reflect.Module;
34 import java.util.ArrayList;
35 import java.util.List;
36 import java.util.Locale;
37 import java.util.MissingResourceException;
38 import java.util.ResourceBundle;
39 import com.sun.tools.javac.code.Lint.LintCategory;
40 import com.sun.tools.javac.util.Log.PrefixKind;
41
42 public class VerifyLintDescriptions {
43 public static void main(String... args) {
44 Layer boot = Layer.boot();
45 Module jdk_compiler = boot.findModule("jdk.compiler").get();
46 ResourceBundle b = ResourceBundle.getBundle("com.sun.tools.javac.resources.javac",
47 Locale.US,
48 jdk_compiler);
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
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
21 * questions.
22 */
23
24 /**
25 * @test
26 * @bug 8033961
27 * @summary Verify that all LintCategories have their descriptions filled.
28 * @modules jdk.compiler/com.sun.tools.javac.code
29 * jdk.compiler/com.sun.tools.javac.resources:open
30 * jdk.compiler/com.sun.tools.javac.util
31 */
32
33 import java.lang.reflect.Layer;
34 import java.lang.reflect.Module;
35 import java.util.ArrayList;
36 import java.util.List;
37 import java.util.Locale;
38 import java.util.MissingResourceException;
39 import java.util.ResourceBundle;
40 import com.sun.tools.javac.code.Lint.LintCategory;
41 import com.sun.tools.javac.util.Log.PrefixKind;
42
43 public class VerifyLintDescriptions {
44 public static void main(String... args) {
45 Layer boot = Layer.boot();
46 Module jdk_compiler = boot.findModule("jdk.compiler").get();
47 ResourceBundle b = ResourceBundle.getBundle("com.sun.tools.javac.resources.javac",
48 Locale.US,
49 jdk_compiler);
|