Forgot to commit visibility changes required for the parsing hack in the new

gui to work.

This change should be reverted once we have a central place for parsing.
Each change is marked with a TODO comment.
This commit is contained in:
Lars Kühne 2002-10-17 20:13:18 +00:00
parent c3e5b68479
commit d91c5c64f5
3 changed files with 13 additions and 4 deletions

View File

@ -77,8 +77,11 @@ public class CommentManager
* This should be called for every file that is checked.
* @param aLines all lines in a file.
*/
CommentManager(String[] aLines)
public CommentManager(String[] aLines)
{
// TODO: Make this constructor package local again
// when parsing is done in a central place
// (currently it's done in the c.p.t.checkstyle and c.p.t.c.gui)
mLines = aLines;
}

View File

@ -27,8 +27,12 @@ import java.io.IOException;
*
* @author <a href="mailto:lkuehne@users.sourceforge.net">Lars Kühne</a>
*/
class StringArrayReader extends Reader
public class StringArrayReader extends Reader
{
// TODO: Make this class and it's constructor package local again
// when parsing is done in a central place
// (currently it's done in the c.p.t.checkstyle and c.p.t.c.gui)
/** the underlying String array */
private final String[] mUnderlyingArray;
@ -49,7 +53,7 @@ class StringArrayReader extends Reader
*
* @param aUnderlyingArray the underlying String array.
*/
StringArrayReader(String[] aUnderlyingArray)
public StringArrayReader(String[] aUnderlyingArray)
{
final int length = aUnderlyingArray.length;
mUnderlyingArray = new String[length];

View File

@ -954,7 +954,9 @@ options {
private CommentManager mCommentManager = null;
void setCommentManager(CommentManager aCommentManager)
// TODO: Check visibility of this method one parsing is done in central
// utility method
public void setCommentManager(CommentManager aCommentManager)
{
mCommentManager = aCommentManager;
}