未验证 提交 fb073449 编写于 作者: A Alex Prut 提交者: GitHub

chore: refactor, last value changed at i++ is never used (#232)

上级 903e806b
......@@ -33,7 +33,7 @@ public class SqlKeywords {
int i = 0;
return (tok.charAt(i++) | 32) == 'a'
&& (tok.charAt(i++) | 32) == 's';
&& (tok.charAt(i) | 32) == 's';
}
public static boolean isInKeyword(CharSequence tok) {
......@@ -43,7 +43,7 @@ public class SqlKeywords {
int i = 0;
return (tok.charAt(i++) | 32) == 'i'
&& (tok.charAt(i++) | 32) == 'n';
&& (tok.charAt(i) | 32) == 'n';
}
public static boolean isOnKeyword(CharSequence tok) {
......@@ -53,7 +53,7 @@ public class SqlKeywords {
int i = 0;
return (tok.charAt(i++) | 32) == 'o'
&& (tok.charAt(i++) | 32) == 'n';
&& (tok.charAt(i) | 32) == 'n';
}
public static boolean isAllKeyword(CharSequence tok) {
......@@ -64,7 +64,7 @@ public class SqlKeywords {
int i = 0;
return (tok.charAt(i++) | 32) == 'a'
&& (tok.charAt(i++) | 32) == 'l'
&& (tok.charAt(i++) | 32) == 'l';
&& (tok.charAt(i) | 32) == 'l';
}
public static boolean isAndKeyword(CharSequence tok) {
......@@ -86,7 +86,7 @@ public class SqlKeywords {
int i = 0;
return (tok.charAt(i++) | 32) == 'a'
&& (tok.charAt(i++) | 32) == 's'
&& (tok.charAt(i++) | 32) == 'c';
&& (tok.charAt(i) | 32) == 'c';
}
public static boolean isNotKeyword(CharSequence tok) {
......@@ -97,7 +97,7 @@ public class SqlKeywords {
int i = 0;
return (tok.charAt(i++) | 32) == 'n'
&& (tok.charAt(i++) | 32) == 'o'
&& (tok.charAt(i++) | 32) == 't';
&& (tok.charAt(i) | 32) == 't';
}
public static boolean isCaseKeyword(CharSequence tok) {
......@@ -109,7 +109,7 @@ public class SqlKeywords {
return (tok.charAt(i++) | 32) == 'c'
&& (tok.charAt(i++) | 32) == 'a'
&& (tok.charAt(i++) | 32) == 's'
&& (tok.charAt(i++) | 32) == 'e';
&& (tok.charAt(i) | 32) == 'e';
}
public static boolean isCastKeyword(CharSequence tok) {
......@@ -121,7 +121,7 @@ public class SqlKeywords {
return (tok.charAt(i++) | 32) == 'c'
&& (tok.charAt(i++) | 32) == 'a'
&& (tok.charAt(i++) | 32) == 's'
&& (tok.charAt(i++) | 32) == 't';
&& (tok.charAt(i) | 32) == 't';
}
public static boolean isCopyKeyword(CharSequence tok) {
......@@ -133,7 +133,7 @@ public class SqlKeywords {
return (tok.charAt(i++) | 32) == 'c'
&& (tok.charAt(i++) | 32) == 'o'
&& (tok.charAt(i++) | 32) == 'p'
&& (tok.charAt(i++) | 32) == 'y';
&& (tok.charAt(i) | 32) == 'y';
}
public static boolean isDescKeyword(CharSequence tok) {
......@@ -145,7 +145,7 @@ public class SqlKeywords {
return (tok.charAt(i++) | 32) == 'd'
&& (tok.charAt(i++) | 32) == 'e'
&& (tok.charAt(i++) | 32) == 's'
&& (tok.charAt(i++) | 32) == 'c';
&& (tok.charAt(i) | 32) == 'c';
}
public static boolean isFillKeyword(CharSequence tok) {
......@@ -157,7 +157,7 @@ public class SqlKeywords {
return (tok.charAt(i++) | 32) == 'f'
&& (tok.charAt(i++) | 32) == 'i'
&& (tok.charAt(i++) | 32) == 'l'
&& (tok.charAt(i++) | 32) == 'l';
&& (tok.charAt(i) | 32) == 'l';
}
public static boolean isFromKeyword(CharSequence tok) {
......@@ -169,7 +169,7 @@ public class SqlKeywords {
return (tok.charAt(i++) | 32) == 'f'
&& (tok.charAt(i++) | 32) == 'r'
&& (tok.charAt(i++) | 32) == 'o'
&& (tok.charAt(i++) | 32) == 'm';
&& (tok.charAt(i) | 32) == 'm';
}
public static boolean isJoinKeyword(CharSequence tok) {
......@@ -181,7 +181,7 @@ public class SqlKeywords {
return (tok.charAt(i++) | 32) == 'j'
&& (tok.charAt(i++) | 32) == 'o'
&& (tok.charAt(i++) | 32) == 'i'
&& (tok.charAt(i++) | 32) == 'n';
&& (tok.charAt(i) | 32) == 'n';
}
public static boolean isNullKeyword(CharSequence tok) {
......@@ -193,7 +193,7 @@ public class SqlKeywords {
return (tok.charAt(i++) | 32) == 'n'
&& (tok.charAt(i++) | 32) == 'u'
&& (tok.charAt(i++) | 32) == 'l'
&& (tok.charAt(i++) | 32) == 'l';
&& (tok.charAt(i) | 32) == 'l';
}
public static boolean isOnlyKeyword(CharSequence tok) {
......@@ -205,7 +205,7 @@ public class SqlKeywords {
return (tok.charAt(i++) | 32) == 'o'
&& (tok.charAt(i++) | 32) == 'n'
&& (tok.charAt(i++) | 32) == 'l'
&& (tok.charAt(i++) | 32) == 'y';
&& (tok.charAt(i) | 32) == 'y';
}
public static boolean isOverKeyword(CharSequence tok) {
......@@ -217,7 +217,7 @@ public class SqlKeywords {
return (tok.charAt(i++) | 32) == 'o'
&& (tok.charAt(i++) | 32) == 'v'
&& (tok.charAt(i++) | 32) == 'e'
&& (tok.charAt(i++) | 32) == 'r';
&& (tok.charAt(i) | 32) == 'r';
}
public static boolean isWithKeyword(CharSequence tok) {
......@@ -229,7 +229,7 @@ public class SqlKeywords {
return (tok.charAt(i++) | 32) == 'w'
&& (tok.charAt(i++) | 32) == 'i'
&& (tok.charAt(i++) | 32) == 't'
&& (tok.charAt(i++) | 32) == 'h';
&& (tok.charAt(i) | 32) == 'h';
}
public static boolean isCacheKeyword(CharSequence tok) {
......@@ -242,7 +242,7 @@ public class SqlKeywords {
&& (tok.charAt(i++) | 32) == 'a'
&& (tok.charAt(i++) | 32) == 'c'
&& (tok.charAt(i++) | 32) == 'h'
&& (tok.charAt(i++) | 32) == 'e';
&& (tok.charAt(i) | 32) == 'e';
}
public static boolean isCountKeyword(CharSequence tok) {
......@@ -255,7 +255,7 @@ public class SqlKeywords {
&& (tok.charAt(i++) | 32) == 'o'
&& (tok.charAt(i++) | 32) == 'u'
&& (tok.charAt(i++) | 32) == 'n'
&& (tok.charAt(i++) | 32) == 't';
&& (tok.charAt(i) | 32) == 't';
}
public static boolean isIndexKeyword(CharSequence tok) {
......@@ -268,7 +268,7 @@ public class SqlKeywords {
&& (tok.charAt(i++) | 32) == 'n'
&& (tok.charAt(i++) | 32) == 'd'
&& (tok.charAt(i++) | 32) == 'e'
&& (tok.charAt(i++) | 32) == 'x';
&& (tok.charAt(i) | 32) == 'x';
}
public static boolean isLimitKeyword(CharSequence tok) {
......@@ -281,7 +281,7 @@ public class SqlKeywords {
&& (tok.charAt(i++) | 32) == 'i'
&& (tok.charAt(i++) | 32) == 'm'
&& (tok.charAt(i++) | 32) == 'i'
&& (tok.charAt(i++) | 32) == 't';
&& (tok.charAt(i) | 32) == 't';
}
public static boolean isOrderKeyword(CharSequence tok) {
......@@ -294,7 +294,7 @@ public class SqlKeywords {
&& (tok.charAt(i++) | 32) == 'r'
&& (tok.charAt(i++) | 32) == 'd'
&& (tok.charAt(i++) | 32) == 'e'
&& (tok.charAt(i++) | 32) == 'r';
&& (tok.charAt(i) | 32) == 'r';
}
public static boolean isTableKeyword(CharSequence tok) {
......@@ -307,7 +307,7 @@ public class SqlKeywords {
&& (tok.charAt(i++) | 32) == 'a'
&& (tok.charAt(i++) | 32) == 'b'
&& (tok.charAt(i++) | 32) == 'l'
&& (tok.charAt(i++) | 32) == 'e';
&& (tok.charAt(i) | 32) == 'e';
}
public static boolean isUnionKeyword(CharSequence tok) {
......@@ -320,7 +320,7 @@ public class SqlKeywords {
&& (tok.charAt(i++) | 32) == 'n'
&& (tok.charAt(i++) | 32) == 'i'
&& (tok.charAt(i++) | 32) == 'o'
&& (tok.charAt(i++) | 32) == 'n';
&& (tok.charAt(i) | 32) == 'n';
}
public static boolean isWhereKeyword(CharSequence tok) {
......@@ -333,7 +333,7 @@ public class SqlKeywords {
&& (tok.charAt(i++) | 32) == 'h'
&& (tok.charAt(i++) | 32) == 'e'
&& (tok.charAt(i++) | 32) == 'r'
&& (tok.charAt(i++) | 32) == 'e';
&& (tok.charAt(i) | 32) == 'e';
}
public static boolean isCreateKeyword(CharSequence tok) {
......@@ -347,7 +347,7 @@ public class SqlKeywords {
&& (tok.charAt(i++) | 32) == 'e'
&& (tok.charAt(i++) | 32) == 'a'
&& (tok.charAt(i++) | 32) == 't'
&& (tok.charAt(i++) | 32) == 'e';
&& (tok.charAt(i) | 32) == 'e';
}
public static boolean isInsertKeyword(CharSequence tok) {
......@@ -361,7 +361,7 @@ public class SqlKeywords {
&& (tok.charAt(i++) | 32) == 's'
&& (tok.charAt(i++) | 32) == 'e'
&& (tok.charAt(i++) | 32) == 'r'
&& (tok.charAt(i++) | 32) == 't';
&& (tok.charAt(i) | 32) == 't';
}
public static boolean isLatestKeyword(CharSequence tok) {
......@@ -375,7 +375,7 @@ public class SqlKeywords {
&& (tok.charAt(i++) | 32) == 't'
&& (tok.charAt(i++) | 32) == 'e'
&& (tok.charAt(i++) | 32) == 's'
&& (tok.charAt(i++) | 32) == 't';
&& (tok.charAt(i) | 32) == 't';
}
public static boolean isRenameKeyword(CharSequence tok) {
......@@ -389,7 +389,7 @@ public class SqlKeywords {
&& (tok.charAt(i++) | 32) == 'n'
&& (tok.charAt(i++) | 32) == 'a'
&& (tok.charAt(i++) | 32) == 'm'
&& (tok.charAt(i++) | 32) == 'e';
&& (tok.charAt(i) | 32) == 'e';
}
public static boolean isSampleKeyword(CharSequence tok) {
......@@ -403,7 +403,7 @@ public class SqlKeywords {
&& (tok.charAt(i++) | 32) == 'm'
&& (tok.charAt(i++) | 32) == 'p'
&& (tok.charAt(i++) | 32) == 'l'
&& (tok.charAt(i++) | 32) == 'e';
&& (tok.charAt(i) | 32) == 'e';
}
public static boolean isSelectKeyword(CharSequence tok) {
......@@ -417,7 +417,7 @@ public class SqlKeywords {
&& (tok.charAt(i++) | 32) == 'l'
&& (tok.charAt(i++) | 32) == 'e'
&& (tok.charAt(i++) | 32) == 'c'
&& (tok.charAt(i++) | 32) == 't';
&& (tok.charAt(i) | 32) == 't';
}
public static boolean isValuesKeyword(CharSequence tok) {
......@@ -431,7 +431,7 @@ public class SqlKeywords {
&& (tok.charAt(i++) | 32) == 'l'
&& (tok.charAt(i++) | 32) == 'u'
&& (tok.charAt(i++) | 32) == 'e'
&& (tok.charAt(i++) | 32) == 's';
&& (tok.charAt(i) | 32) == 's';
}
public static boolean isNoCacheKeyword(CharSequence tok) {
......@@ -446,7 +446,7 @@ public class SqlKeywords {
&& (tok.charAt(i++) | 32) == 'a'
&& (tok.charAt(i++) | 32) == 'c'
&& (tok.charAt(i++) | 32) == 'h'
&& (tok.charAt(i++) | 32) == 'e';
&& (tok.charAt(i) | 32) == 'e';
}
public static boolean isCapacityKeyword(CharSequence tok) {
......@@ -462,7 +462,7 @@ public class SqlKeywords {
&& (tok.charAt(i++) | 32) == 'c'
&& (tok.charAt(i++) | 32) == 'i'
&& (tok.charAt(i++) | 32) == 't'
&& (tok.charAt(i++) | 32) == 'y';
&& (tok.charAt(i) | 32) == 'y';
}
public static boolean isDatabaseKeyword(CharSequence tok) {
......@@ -478,7 +478,7 @@ public class SqlKeywords {
&& (tok.charAt(i++) | 32) == 'b'
&& (tok.charAt(i++) | 32) == 'a'
&& (tok.charAt(i++) | 32) == 's'
&& (tok.charAt(i++) | 32) == 'e';
&& (tok.charAt(i) | 32) == 'e';
}
public static boolean isDistinctKeyword(CharSequence tok) {
......@@ -494,7 +494,7 @@ public class SqlKeywords {
&& (tok.charAt(i++) | 32) == 'i'
&& (tok.charAt(i++) | 32) == 'n'
&& (tok.charAt(i++) | 32) == 'c'
&& (tok.charAt(i++) | 32) == 't';
&& (tok.charAt(i) | 32) == 't';
}
public static boolean isPartitionKeyword(CharSequence tok) {
......@@ -511,7 +511,7 @@ public class SqlKeywords {
&& (tok.charAt(i++) | 32) == 't'
&& (tok.charAt(i++) | 32) == 'i'
&& (tok.charAt(i++) | 32) == 'o'
&& (tok.charAt(i++) | 32) == 'n';
&& (tok.charAt(i) | 32) == 'n';
}
public static boolean isTimestampKeyword(CharSequence tok) {
......@@ -528,6 +528,6 @@ public class SqlKeywords {
&& (tok.charAt(i++) | 32) == 't'
&& (tok.charAt(i++) | 32) == 'a'
&& (tok.charAt(i++) | 32) == 'm'
&& (tok.charAt(i++) | 32) == 'p';
&& (tok.charAt(i) | 32) == 'p';
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册