Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit 98b0bb5

Browse files
committed
Fix checkstyle errors
1 parent 48793fc commit 98b0bb5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

parser/src/main/java/org/hibernate/hql/QueryParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private String getUnconsumedTokens(CommonTokenStream tokens) {
103103
StringBuilder nonEofEndingTokens = new StringBuilder();
104104

105105
@SuppressWarnings("unchecked")
106-
List<Token> unconsumed = (List<Token>) tokens.getTokens(tokens.index(), tokens.size() - 1);
106+
List<Token> unconsumed = (List<Token>) tokens.getTokens( tokens.index(), tokens.size() - 1 );
107107
for ( Token endToken : unconsumed ) {
108108
// Ignore <EOF> tokens as they might be inserted by the parser
109109
if ( endToken.getType() != Token.EOF ) {

testing/src/main/java/org/hibernate/hql/testing/internal/parser/GrammarRuleTestRunner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ private String getUnconsumedTokens(CommonTokenStream tokens) {
183183
StringBuilder nonEofEndingTokens = new StringBuilder();
184184

185185
@SuppressWarnings("unchecked")
186-
List<Token> unconsumed = (List<Token>) tokens.getTokens(tokens.index(), tokens.size() - 1);
186+
List<Token> unconsumed = (List<Token>) tokens.getTokens( tokens.index(), tokens.size() - 1 );
187187
for ( Token endToken : unconsumed ) {
188188
// Ignore <EOF> tokens as they might be inserted by the parser
189189
if ( endToken.getType() != Token.EOF ) {

0 commit comments

Comments
 (0)