11package sqlancer .sqlite3 .ast ;
22
33import java .util .List ;
4- import java .util .Optional ;
54import java .util .Map ;
5+ import java .util .Optional ;
66
77import sqlancer .IgnoreMeException ;
88import sqlancer .LikeImplementationHelper ;
@@ -114,7 +114,7 @@ public SQLite3CollateSequence getImplicitCollateSequence() {
114114 public static class SQLite3Exist extends SQLite3Expression {
115115
116116 private final SQLite3Expression select ;
117- private boolean negated = false ;
117+ private boolean negated ;
118118
119119 public SQLite3Exist (SQLite3Expression select , boolean negated ) {
120120 this .select = select ;
@@ -1565,7 +1565,7 @@ public boolean omitBracketsWhenPrinting() {
15651565
15661566 public static class SQLite3WithClause extends SQLite3Expression {
15671567
1568- private SQLite3Expression left ;
1568+ private final SQLite3Expression left ;
15691569 private SQLite3Expression right ;
15701570
15711571 public SQLite3WithClause (SQLite3Expression left , SQLite3Expression right ) {
@@ -1593,23 +1593,23 @@ public SQLite3CollateSequence getExplicitCollateSequence() {
15931593
15941594 public static class SQLite3Alias extends SQLite3Expression {
15951595
1596- private SQLite3Expression originalExpression ;
1597- private SQLite3Expression aliasExpression ;
1598-
1596+ private final SQLite3Expression originalExpression ;
1597+ private final SQLite3Expression aliasExpression ;
1598+
15991599 public SQLite3Alias (SQLite3Expression originalExpression , SQLite3Expression aliasExpression ) {
16001600 this .originalExpression = originalExpression ;
16011601 this .aliasExpression = aliasExpression ;
16021602 }
1603-
1603+
16041604 @ Override
16051605 public SQLite3CollateSequence getExplicitCollateSequence () {
16061606 return null ;
16071607 }
1608-
1608+
16091609 public SQLite3Expression getOriginalExpression () {
16101610 return originalExpression ;
16111611 }
1612-
1612+
16131613 public SQLite3Expression getAliasExpression () {
16141614 return aliasExpression ;
16151615 }
@@ -1673,8 +1673,7 @@ public SQLite3CollateSequence getExplicitCollateSequence() {
16731673 }
16741674 }
16751675
1676-
1677- // The ExpressionBag is not a built-in SQL feature,
1676+ // The ExpressionBag is not a built-in SQL feature,
16781677 // but rather a utility class used in CODDTest's oracle construction
16791678 // to substitute expressions with their corresponding constant values.
16801679 public static class SQLite3ExpressionBag extends SQLite3Expression {
@@ -1700,7 +1699,7 @@ public SQLite3CollateSequence getExplicitCollateSequence() {
17001699 }
17011700
17021701 public static class SQLite3Typeof extends SQLite3Expression {
1703- private SQLite3Expression innerExpr ;
1702+ private final SQLite3Expression innerExpr ;
17041703
17051704 public SQLite3Typeof (SQLite3Expression innerExpr ) {
17061705 this .innerExpr = innerExpr ;
@@ -1714,7 +1713,7 @@ public SQLite3Expression getInnerExpr() {
17141713 public SQLite3CollateSequence getExplicitCollateSequence () {
17151714 return null ;
17161715 }
1717-
1716+
17181717 }
17191718
17201719 public static class SQLite3ResultMap extends SQLite3Expression {
@@ -1723,7 +1722,8 @@ public static class SQLite3ResultMap extends SQLite3Expression {
17231722 private final List <SQLite3Constant > summary ;
17241723 private final SQLite3DataType summaryDataType ;
17251724
1726- public SQLite3ResultMap (SQLite3Values values , List <SQLite3ColumnName > columns , List <SQLite3Constant > summary , SQLite3DataType summaryDataType ) {
1725+ public SQLite3ResultMap (SQLite3Values values , List <SQLite3ColumnName > columns , List <SQLite3Constant > summary ,
1726+ SQLite3DataType summaryDataType ) {
17271727 this .values = values ;
17281728 this .columns = columns ;
17291729 this .summary = summary ;
@@ -1755,6 +1755,6 @@ public SQLite3DataType getSummaryDataType() {
17551755 public SQLite3CollateSequence getExplicitCollateSequence () {
17561756 return null ;
17571757 }
1758-
1758+
17591759 }
1760- }
1760+ }
0 commit comments