File tree Expand file tree Collapse file tree
main/java/com/google/cloud/spanner
test/java/com/google/cloud/spanner Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ private void checkBindingInProgress(boolean expectInProgress) {
213213
214214 private void checkDuplicateColumns (ImmutableList <String > columnNames ) {
215215 Set <String > columnNameSet = new HashSet <>();
216- for (String columnName : columns . build () ) {
216+ for (String columnName : columnNames ) {
217217 columnName = columnName .toLowerCase ();
218218 if (columnNameSet .contains (columnName )) {
219219 throw new IllegalStateException ("Duplicate column: " + columnName );
Original file line number Diff line number Diff line change @@ -126,14 +126,14 @@ public void replace() {
126126 public void duplicateColumn () {
127127 expectedException .expect (IllegalStateException .class );
128128 expectedException .expectMessage ("Duplicate column" );
129- Mutation m = Mutation .newInsertBuilder ("T1" ).set ("C1" ).to (true ).set ("C1" ).to (false ).build ();
129+ Mutation .newInsertBuilder ("T1" ).set ("C1" ).to (true ).set ("C1" ).to (false ).build ();
130130 }
131131
132132 @ Test
133133 public void duplicateColumnCaseInsensitive () {
134134 expectedException .expect (IllegalStateException .class );
135135 expectedException .expectMessage ("Duplicate column" );
136- Mutation m = Mutation .newInsertBuilder ("T1" ).set ("C1" ).to (true ).set ("c1" ).to (false ).build ();
136+ Mutation .newInsertBuilder ("T1" ).set ("C1" ).to (true ).set ("c1" ).to (false ).build ();
137137 }
138138
139139 @ Test
You can’t perform that action at this time.
0 commit comments