test/tools/javac/processing/warnings/TestSourceVersionWarnings.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 48,58 **** import javax.lang.model.util.*; import static javax.tools.Diagnostic.Kind.*; /** * This processor returns the supported source level as indicated by ! * the "SourceLevel" option. */ @SupportedAnnotationTypes("*") @SupportedOptions("SourceVersion") public class TestSourceVersionWarnings extends AbstractProcessor { --- 48,59 ---- import javax.lang.model.util.*; import static javax.tools.Diagnostic.Kind.*; /** * This processor returns the supported source level as indicated by ! * the "SourceLevel" option; therefore, don't use ! * JavacTestingAbstractProcessor which returns the latest source level. */ @SupportedAnnotationTypes("*") @SupportedOptions("SourceVersion") public class TestSourceVersionWarnings extends AbstractProcessor {