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 @@ -247,6 +247,7 @@ public abstract static class FieldType implements Serializable {
/**
* Returns optional extra metadata.
*/
@SuppressWarnings("mutable")
@Nullable public abstract byte[] getMetadata();
abstract FieldType.Builder toBuilder();
@AutoValue.Builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,10 @@ private Object verifyPrimitiveType(Object value, TypeName type, String fieldName
return value;
}
break;
default:
// Shouldn't actually get here, but we need this case to satisfy linters.
throw new IllegalArgumentException(
String.format("Not a primitive type for field name %s: %s", fieldName, type));
}
throw new IllegalArgumentException(
String.format("For field name %s and type %s found incorrect class type %s",
Expand Down