@@ -89,7 +89,8 @@ public boolean autoComplete(Sentence sentence) {
8989 best = quotedName ;
9090 bestSchema = schema ;
9191 }
92- } else if (s .isEmpty () || StringUtils .startsWithIgnoringCase (name , query ) || StringUtils .startsWithIgnoringCase (quotedName , query )) {
92+ } else if (s .isEmpty () || StringUtils .startsWithIgnoringCase (name , query )
93+ || StringUtils .startsWithIgnoringCase (quotedName , query )) {
9394 if (s .length () < name .length ()) {
9495 sentence .add (name , name .substring (s .length ()), type );
9596 sentence .add (schema .quotedName + "." ,
@@ -116,12 +117,14 @@ public boolean autoComplete(Sentence sentence) {
116117 String name = table .getName ();
117118 String quotedName = StringUtils .quoteIdentifier (name );
118119
119- if (StringUtils .startsWithIgnoringCase (query , name ) || StringUtils .startsWithIgnoringCase ("\" " + query , quotedName )) {
120+ if (StringUtils .startsWithIgnoringCase (query , name )
121+ || StringUtils .startsWithIgnoringCase ("\" " + query , quotedName )) {
120122 if (best == null || name .length () > best .length ()) {
121123 best = name ;
122124 bestTable = table ;
123125 }
124- } else if (s .isEmpty () || StringUtils .startsWithIgnoringCase (name , query ) || StringUtils .startsWithIgnoringCase (quotedName , query )) {
126+ } else if (s .isEmpty () || StringUtils .startsWithIgnoringCase (name , query )
127+ || StringUtils .startsWithIgnoringCase (quotedName , query )) {
125128 if (s .length () < name .length ()) {
126129 sentence .add (table .getQuotedName (),
127130 table .getQuotedName ().substring (s .length ()),
0 commit comments