提交 5c3c98aa 编写于 作者: J jjg

8011676: Instances of Tokens.Comment should not be defined in inner classes

Reviewed-by: mcimadamore
上级 a0eb4501
/*
* 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 @@ public class JavaTokenizer {
* (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;
......
......@@ -206,7 +206,7 @@ public class JavadocTokenizer extends JavaTokenizer {
}
}
protected class JavadocComment extends JavaTokenizer.BasicComment<DocReader> {
protected static class JavadocComment extends JavaTokenizer.BasicComment<DocReader> {
/**
* Translated and stripped contents of doc comment
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册