Skip to content

Commit f50a31f

Browse files
jcanizalesmziccard
authored andcommitted
Change Map<Str, Object> to Map<Str, ? extends Object> for BigQuery's RowToInsert (#1259)
1 parent e973d60 commit f50a31f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/InsertAllRequest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static class RowToInsert implements Serializable {
7676
private final String id;
7777
private final Map<String, Object> content;
7878

79-
RowToInsert(String id, Map<String, Object> content) {
79+
RowToInsert(String id, Map<String, ?> content) {
8080
this.id = id;
8181
this.content = ImmutableMap.copyOf(content);
8282
}
@@ -125,7 +125,7 @@ public boolean equals(Object obj) {
125125
* @param id id of the row, used to identify duplicates
126126
* @param content the actual content of the row
127127
*/
128-
public static RowToInsert of(String id, Map<String, Object> content) {
128+
public static RowToInsert of(String id, Map<String, ?> content) {
129129
return new RowToInsert(checkNotNull(id), checkNotNull(content));
130130
}
131131

@@ -135,7 +135,7 @@ public static RowToInsert of(String id, Map<String, Object> content) {
135135
*
136136
* @param content the actual content of the row
137137
*/
138-
public static RowToInsert of(Map<String, Object> content) {
138+
public static RowToInsert of(Map<String, ?> content) {
139139
return new RowToInsert(null, checkNotNull(content));
140140
}
141141
}
@@ -196,7 +196,7 @@ public Builder addRow(RowToInsert rowToInsert) {
196196
* builder.addRow("rowId", rowContent);
197197
* }</pre>
198198
*/
199-
public Builder addRow(String id, Map<String, Object> content) {
199+
public Builder addRow(String id, Map<String, ?> content) {
200200
addRow(new RowToInsert(id, content));
201201
return this;
202202
}
@@ -219,7 +219,7 @@ public Builder addRow(String id, Map<String, Object> content) {
219219
* builder.addRow(rowContent);
220220
* }</pre>
221221
*/
222-
public Builder addRow(Map<String, Object> content) {
222+
public Builder addRow(Map<String, ?> content) {
223223
addRow(new RowToInsert(null, content));
224224
return this;
225225
}

0 commit comments

Comments
 (0)