Skip to content
This repository has been archived by the owner on Apr 1, 2019. It is now read-only.

Code quality fix - Class variable fields should not have public accessibility. #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class JSONPathCompilerTokenManager implements JSONPathCompilerConstants
{

/** Debug output. */
public java.io.PrintStream debugStream = System.out;
private java.io.PrintStream debugStream = System.out;
/** Set debug output. */
public void setDebugStream(java.io.PrintStream ds) { debugStream = ds; }
private final int jjStopStringLiteralDfa_0(int pos, long active0)
Expand Down
18 changes: 15 additions & 3 deletions src/main/java/us/monoid/web/jp/javacc/ParseException.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,21 @@ public ParseException(String message) {
* this object has been created due to a parse error, the token
* followng this token will (therefore) be the first error token.
*/
public Token currentToken;
private Token currentToken;

/**
* Each entry in this array is an array of integers. Each array
* of integers represents a sequence of tokens (by their ordinal
* values) that is expected at this point of the parse.
*/
public int[][] expectedTokenSequences;
private int[][] expectedTokenSequences;

/**
* This is a reference to the "tokenImage" array of the generated
* parser within which the parse error occurred. This array is
* defined in the generated ...Constants interface.
*/
public String[] tokenImage;
private String[] tokenImage;

/**
* It uses "currentToken" and "expectedTokenSequences" to generate a parse
Expand Down Expand Up @@ -183,5 +183,17 @@ static String add_escapes(String str) {
return retval.toString();
}

public Token getCurrentToken() {
return currentToken;
}

public int[][] getExpectedTokenSequences() {
return expectedTokenSequences;
}

public String[] getTokenImage() {
return tokenImage;
}

}
/* JavaCC - OriginalChecksum=ab578882683d17bd63a4b7e9390109e4 (do not edit this line) */
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class SimpleCharStream
int available;
int tokenBegin;
/** Position in buffer. */
public int bufpos = -1;
protected int bufpos = -1;
protected int bufline[];
protected int bufcolumn[];

Expand Down