src/share/sample/javac/processing/src/CheckNamesProcessor.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * --- 1,7 ---- /* ! * Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: *
*** 136,146 **** @Override public SourceVersion getSupportedSourceVersion() { /* * Return latest source version instead of a fixed version ! * like RELEASE_8. To return a fixed version, this class * could be annotated with a SupportedSourceVersion * annotation. * * Warnings will be issued if any unknown language constructs * are encountered. --- 136,146 ---- @Override public SourceVersion getSupportedSourceVersion() { /* * Return latest source version instead of a fixed version ! * like RELEASE_9. To return a fixed version, this class * could be annotated with a SupportedSourceVersion * annotation. * * Warnings will be issued if any unknown language constructs * are encountered.
*** 190,200 **** } /** * Visitor to implement name checks. */ ! private class NameCheckScanner extends ElementScanner8<Void, Void> { // The visitor could be enhanced to return true/false if // there were warnings reported or a count of the number // of warnings. This could be facilitated by using // Boolean or Integer instead of Void for the actual type // arguments. In more detail, one way to tally the number --- 190,200 ---- } /** * Visitor to implement name checks. */ ! private class NameCheckScanner extends ElementScanner9<Void, Void> { // The visitor could be enhanced to return true/false if // there were warnings reported or a count of the number // of warnings. This could be facilitated by using // Boolean or Integer instead of Void for the actual type // arguments. In more detail, one way to tally the number