3636
3737import java .util .ArrayList ;
3838import java .util .List ;
39+
3940import net .sf .jsqlparser .statement .SetStatement ;
4041import net .sf .jsqlparser .statement .StatementVisitor ;
4142import net .sf .jsqlparser .statement .Statements ;
5354 */
5455public class TablesNamesFinder implements SelectVisitor , FromItemVisitor , ExpressionVisitor , ItemsListVisitor , SelectItemVisitor , StatementVisitor {
5556
56- private List <String > tables ;
57+ private static final String NOT_SUPPORTED_YET = "Not supported yet." ;
58+ private List <String > tables ;
5759 /**
5860 * There are special names, that are not table names but are parsed as
5961 * tables. These names are collected here and are not included in the tables
@@ -573,17 +575,17 @@ public void visit(Replace replace) {
573575
574576 @ Override
575577 public void visit (Drop drop ) {
576- throw new UnsupportedOperationException ("Not supported yet." ); //To change body of generated methods, choose Tools | Templates.
578+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET ); //To change body of generated methods, choose Tools | Templates.
577579 }
578580
579581 @ Override
580582 public void visit (Truncate truncate ) {
581- throw new UnsupportedOperationException ("Not supported yet." ); //To change body of generated methods, choose Tools | Templates.
583+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET ); //To change body of generated methods, choose Tools | Templates.
582584 }
583585
584586 @ Override
585587 public void visit (CreateIndex createIndex ) {
586- throw new UnsupportedOperationException ("Not supported yet." ); //To change body of generated methods, choose Tools | Templates.
588+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET ); //To change body of generated methods, choose Tools | Templates.
587589 }
588590
589591 @ Override
@@ -596,27 +598,27 @@ public void visit(CreateTable create) {
596598
597599 @ Override
598600 public void visit (CreateView createView ) {
599- throw new UnsupportedOperationException ("Not supported yet." ); //To change body of generated methods, choose Tools | Templates.
601+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET ); //To change body of generated methods, choose Tools | Templates.
600602 }
601603
602604 @ Override
603605 public void visit (Alter alter ) {
604- throw new UnsupportedOperationException ("Not supported yet." ); //To change body of generated methods, choose Tools | Templates.
606+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET ); //To change body of generated methods, choose Tools | Templates.
605607 }
606608
607609 @ Override
608610 public void visit (Statements stmts ) {
609- throw new UnsupportedOperationException ("Not supported yet." ); //To change body of generated methods, choose Tools | Templates.
611+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET ); //To change body of generated methods, choose Tools | Templates.
610612 }
611613
612614 @ Override
613615 public void visit (Execute execute ) {
614- throw new UnsupportedOperationException ("Not supported yet." ); //To change body of generated methods, choose Tools | Templates.
616+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET ); //To change body of generated methods, choose Tools | Templates.
615617 }
616618
617619 @ Override
618620 public void visit (SetStatement set ) {
619- throw new UnsupportedOperationException ("Not supported yet." ); //To change body of generated methods, choose Tools | Templates.
621+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET ); //To change body of generated methods, choose Tools | Templates.
620622 }
621623
622624 @ Override
@@ -633,7 +635,7 @@ public void visit(HexValue hexValue) {
633635
634636 @ Override
635637 public void visit (Merge merge ) {
636- throw new UnsupportedOperationException ("Not supported yet." ); //To change body of generated methods, choose Tools | Templates.
638+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET ); //To change body of generated methods, choose Tools | Templates.
637639 }
638640
639641 @ Override
0 commit comments