Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ public Map<String, Object> getNamedBindings() {
for (Map.Entry<String, Binding> binding : namedBindings.entrySet()) {
builder.put(binding.getKey(), binding.getValue().getCursorOrValue());
}
return builder.build();
return builder.buildOrThrow();
}

/** Returns an immutable list of positional bindings (using original order). */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ static Map<Class<? extends ReadOption>, ReadOption> asImmutableMap(ReadOption...
for (ReadOption option : options) {
builder.put(option.getClass(), option);
}
return builder.build();
return builder.buildOrThrow();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public enum ValueType {
builder.put(fieldId, valueType);
}
}
DESCRIPTOR_TO_TYPE_MAP = builder.build();
DESCRIPTOR_TO_TYPE_MAP = builder.buildOrThrow();
}

<V, P extends Value<V>, B extends ValueBuilder<V, P, B>> ValueType(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public class ValueTest {
.put(ValueType.RAW_VALUE, new Object[] {RawValue.class, RAW_VALUE.get()})
.put(ValueType.LAT_LNG, new Object[] {LatLngValue.class, LAT_LNG_VALUE.get()})
.put(ValueType.STRING, new Object[] {StringValue.class, STRING_VALUE.get()})
.build();
.buildOrThrow();

private ImmutableMap<ValueType, Value<?>> typeToValue;

Expand Down Expand Up @@ -110,7 +110,7 @@ public void setUp() throws Exception {
assertTrue("Could not find an of method for " + valueClass, found);
}
}
typeToValue = builder.build();
typeToValue = builder.buildOrThrow();
}

@Test
Expand Down