1313import java .util .Arrays ;
1414import java .util .Collections ;
1515import java .util .List ;
16-
1716import net .sf .jsqlparser .statement .create .table .ColDataType ;
1817import net .sf .jsqlparser .statement .create .table .Index ;
1918import net .sf .jsqlparser .statement .select .PlainSelect ;
@@ -148,12 +147,12 @@ public String getConstraintName() {
148147 public void setConstraintName (final String constraintName ) {
149148 this .constraintName = constraintName ;
150149 }
151-
150+
152151 public boolean isConstraintIfExists () {
153152 return constraintIfExists ;
154153 }
155-
156- public void setConstraintIfExists ( boolean constraintIfExists ) {
154+
155+ public void setConstraintIfExists (boolean constraintIfExists ) {
157156 this .constraintIfExists = constraintIfExists ;
158157 }
159158
@@ -234,8 +233,8 @@ public String toString() {
234233 if (columnName != null ) {
235234 b .append ("COLUMN " ).append (columnName );
236235 } else if (getColDataTypeList () != null ) {
237- if (operation == AlterOperation .CHANGE ) {
238- if (optionalSpecifier != null ) {
236+ if (operation == AlterOperation .CHANGE ) {
237+ if (optionalSpecifier != null ) {
239238 b .append (optionalSpecifier ).append (" " );
240239 }
241240 b .append (columnOldName ).append (" " );
@@ -250,8 +249,8 @@ public String toString() {
250249 }
251250 } else if (constraintName != null ) {
252251 b .append ("CONSTRAINT " );
253- if (constraintIfExists ) {
254- b .append ("IF EXISTS " );
252+ if (constraintIfExists ) {
253+ b .append ("IF EXISTS " );
255254 }
256255 b .append (constraintName );
257256 } else if (pkColumns != null ) {
@@ -264,7 +263,7 @@ public String toString() {
264263 } else {
265264 b .append (" INDEX " );
266265 }
267- b .append (ukName );
266+ b .append (ukName );
268267 }
269268 b .append (" (" ).append (PlainSelect .getStringList (ukColumns )).append (")" );
270269 } else if (fkColumns != null ) {
@@ -287,7 +286,7 @@ public String toString() {
287286 if (getUseEqual ()) {
288287 b .append ('=' );
289288 }
290- if (parameters != null && !parameters .isEmpty ()) {
289+ if (parameters != null && !parameters .isEmpty ()) {
291290 b .append (' ' ).append (PlainSelect .getStringList (parameters , false , false ));
292291 }
293292
@@ -325,7 +324,7 @@ public List<String> getColumnSpecs() {
325324
326325 @ Override
327326 public String toString () {
328- return columnName + ( withType ? " TYPE " : " " ) + colDataType + parametersToString ();
327+ return columnName + (withType ? " TYPE " : " " ) + colDataType + parametersToString ();
329328 }
330329
331330 private String parametersToString () {
0 commit comments