8011676: Instances of Tokens.Comment should not be defined in inner classes
Reviewed-by: mcimadamore
--- a/langtools/src/share/classes/com/sun/tools/javac/parser/JavaTokenizer.java Mon Apr 08 15:59:29 2013 +0100
+++ b/langtools/src/share/classes/com/sun/tools/javac/parser/JavaTokenizer.java Mon Apr 08 11:54:26 2013 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2013, 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
@@ -770,7 +770,7 @@
* (which is treated as the beginning of the first line).
* Stops positioned at the closing '/'.
*/
- protected class BasicComment<U extends UnicodeReader> implements Comment {
+ protected static class BasicComment<U extends UnicodeReader> implements Comment {
CommentStyle cs;
U comment_reader;
--- a/langtools/src/share/classes/com/sun/tools/javac/parser/JavadocTokenizer.java Mon Apr 08 15:59:29 2013 +0100
+++ b/langtools/src/share/classes/com/sun/tools/javac/parser/JavadocTokenizer.java Mon Apr 08 11:54:26 2013 -0700
@@ -206,7 +206,7 @@
}
}
- protected class JavadocComment extends JavaTokenizer.BasicComment<DocReader> {
+ protected static class JavadocComment extends JavaTokenizer.BasicComment<DocReader> {
/**
* Translated and stripped contents of doc comment