in src-gen/com/facebook/buck/log/thrift/rulekeys/Value.java [314:409]
protected void checkType(_Fields setField, java.lang.Object value) throws java.lang.ClassCastException {
switch (setField) {
case STRING_VALUE:
if (value instanceof java.lang.String) {
break;
}
throw new java.lang.ClassCastException("Was expecting value of type java.lang.String for field 'stringValue', but got " + value.getClass().getSimpleName());
case NUMBER_VALUE:
if (value instanceof java.lang.Double) {
break;
}
throw new java.lang.ClassCastException("Was expecting value of type java.lang.Double for field 'numberValue', but got " + value.getClass().getSimpleName());
case BOOL_VALUE:
if (value instanceof java.lang.Boolean) {
break;
}
throw new java.lang.ClassCastException("Was expecting value of type java.lang.Boolean for field 'boolValue', but got " + value.getClass().getSimpleName());
case NULL_VALUE:
if (value instanceof NullValue) {
break;
}
throw new java.lang.ClassCastException("Was expecting value of type NullValue for field 'nullValue', but got " + value.getClass().getSimpleName());
case HASHED_PATH:
if (value instanceof HashedPath) {
break;
}
throw new java.lang.ClassCastException("Was expecting value of type HashedPath for field 'hashedPath', but got " + value.getClass().getSimpleName());
case PATH:
if (value instanceof NonHashedPath) {
break;
}
throw new java.lang.ClassCastException("Was expecting value of type NonHashedPath for field 'path', but got " + value.getClass().getSimpleName());
case SHA1_HASH:
if (value instanceof Sha1) {
break;
}
throw new java.lang.ClassCastException("Was expecting value of type Sha1 for field 'sha1Hash', but got " + value.getClass().getSimpleName());
case PATTERN:
if (value instanceof Pattern) {
break;
}
throw new java.lang.ClassCastException("Was expecting value of type Pattern for field 'pattern', but got " + value.getClass().getSimpleName());
case BYTE_ARRAY:
if (value instanceof ByteArray) {
break;
}
throw new java.lang.ClassCastException("Was expecting value of type ByteArray for field 'byteArray', but got " + value.getClass().getSimpleName());
case CONTAINER_MAP:
if (value instanceof java.util.Map) {
break;
}
throw new java.lang.ClassCastException("Was expecting value of type java.util.Map<java.lang.String,Value> for field 'containerMap', but got " + value.getClass().getSimpleName());
case CONTAINER_LIST:
if (value instanceof java.util.List) {
break;
}
throw new java.lang.ClassCastException("Was expecting value of type java.util.List<Value> for field 'containerList', but got " + value.getClass().getSimpleName());
case RULE_KEY_HASH:
if (value instanceof RuleKeyHash) {
break;
}
throw new java.lang.ClassCastException("Was expecting value of type RuleKeyHash for field 'ruleKeyHash', but got " + value.getClass().getSimpleName());
case ARCHIVE_MEMBER_PATH:
if (value instanceof ArchiveMemberPath) {
break;
}
throw new java.lang.ClassCastException("Was expecting value of type ArchiveMemberPath for field 'archiveMemberPath', but got " + value.getClass().getSimpleName());
case BUILD_RULE_TYPE:
if (value instanceof BuildRuleType) {
break;
}
throw new java.lang.ClassCastException("Was expecting value of type BuildRuleType for field 'buildRuleType', but got " + value.getClass().getSimpleName());
case WRAPPER:
if (value instanceof Wrapper) {
break;
}
throw new java.lang.ClassCastException("Was expecting value of type Wrapper for field 'wrapper', but got " + value.getClass().getSimpleName());
case BUILD_TARGET:
if (value instanceof BuildTarget) {
break;
}
throw new java.lang.ClassCastException("Was expecting value of type BuildTarget for field 'buildTarget', but got " + value.getClass().getSimpleName());
case TARGET_PATH:
if (value instanceof TargetPath) {
break;
}
throw new java.lang.ClassCastException("Was expecting value of type TargetPath for field 'targetPath', but got " + value.getClass().getSimpleName());
case KEY:
if (value instanceof Key) {
break;
}
throw new java.lang.ClassCastException("Was expecting value of type Key for field 'key', but got " + value.getClass().getSimpleName());
default:
throw new java.lang.IllegalArgumentException("Unknown field id " + setField);
}
}