Skip to content

Commit 07562e6

Browse files
committed
style: declare the keyword sets of NameKeywords before its constructor
Codacy's PMD rule FieldDeclarationsShouldBeAtStartOfClass reported the six keyword sets of NameKeywords, which follow its private constructor. The constructor now follows them. No change in behaviour. Signed-off-by: minleejae <mmj9808@gmail.com>
1 parent 06a4b76 commit 07562e6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/main/java/net/sf/jsqlparser/parser/NameKeywords.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
*/
2929
final class NameKeywords implements CCJSqlParserConstants {
3030

31-
private NameKeywords() {}
32-
3331
/**
3432
* MySQL 8.4's reserved keywords, as {@code INFORMATION_SCHEMA.KEYWORDS} lists them (RESERVED =
3533
* 1).
@@ -187,6 +185,8 @@ private NameKeywords() {}
187185
"VARYING", "VERSION", "VIEW", "VIEWS", "VIRTUAL", "VOLATILE", "WHITESPACE",
188186
"WITHIN", "WITHOUT", "WORK", "WRAPPER", "WRITE", "XML", "YEAR", "YES", "ZONE"));
189187

188+
private NameKeywords() {}
189+
190190
/**
191191
* Whether the token is a name as it is: an identifier, a quoted identifier, a data type word or
192192
* a date literal word.

0 commit comments

Comments
 (0)