File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
core/src/main/java/com/datastax/oss/driver/internal/core Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 2121import com .datastax .oss .driver .api .core .config .DriverExecutionProfile ;
2222import com .datastax .oss .driver .api .core .config .DriverOption ;
2323import com .datastax .oss .driver .internal .core .util .Loggers ;
24- import com .datastax .oss .driver .shaded .guava .common .base .Preconditions ;
2524import com .datastax .oss .driver .shaded .guava .common .collect .ImmutableMap ;
2625import com .typesafe .config .Config ;
2726import com .typesafe .config .ConfigObject ;
@@ -152,7 +151,10 @@ public DriverExecutionProfile getProfile(@NonNull String profileName) {
152151 return defaultProfile ;
153152 }
154153 return Optional .ofNullable (profiles .get (profileName ))
155- .orElseThrow (() -> new IllegalArgumentException (String .format ("Unknown profile '%s'. Check your configuration." , profileName )));
154+ .orElseThrow (
155+ () ->
156+ new IllegalArgumentException (
157+ String .format ("Unknown profile '%s'. Check your configuration." , profileName )));
156158 }
157159
158160 @ NonNull
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ public List<Integer> allIndicesOf(String name) {
7676 */
7777 public int firstIndexOf (String name ) {
7878 Iterator <Integer > indices = allIndicesOf (name ).iterator ();
79- return indices .hasNext () ? - 1 : indices .next ();
79+ return indices .hasNext () ? indices .next () : - 1 ;
8080 }
8181
8282 /** Returns all occurrences of a given identifier. */
@@ -87,6 +87,6 @@ public List<Integer> allIndicesOf(CqlIdentifier id) {
8787 /** Returns the first occurrence of a given identifier, or -1 if it's not in the list. */
8888 public int firstIndexOf (CqlIdentifier id ) {
8989 Iterator <Integer > indices = allIndicesOf (id ).iterator ();
90- return indices .hasNext () ? - 1 : indices .next ();
90+ return indices .hasNext () ? indices .next () : - 1 ;
9191 }
9292}
You can’t perform that action at this time.
0 commit comments