Fixed some bogus null checks and assignments.
This commit is contained in:
@@ -515,12 +515,12 @@ public abstract class BuildVisitor implements ExpressionVisitor
|
|||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
DepotMarshaller<?> dm = _types.getMarshaller(type);
|
DepotMarshaller<?> dm = _types.getMarshaller(type);
|
||||||
FieldMarshaller<?> fm = dm.getFieldMarshaller(field);
|
|
||||||
if (dm == null) {
|
if (dm == null) {
|
||||||
throw new IllegalArgumentException(
|
throw new IllegalArgumentException(
|
||||||
"Unknown field on persistent record [record=" + type + ", field=" + field + "]");
|
"Unknown field on persistent record [record=" + type + ", field=" + field + "]");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FieldMarshaller<?> fm = dm.getFieldMarshaller(field);
|
||||||
appendIdentifier(fm.getColumnName());
|
appendIdentifier(fm.getColumnName());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -530,12 +530,12 @@ public abstract class BuildVisitor implements ExpressionVisitor
|
|||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
DepotMarshaller<?> dm = _types.getMarshaller(type);
|
DepotMarshaller<?> dm = _types.getMarshaller(type);
|
||||||
FieldMarshaller<?> fm = dm.getFieldMarshaller(field);
|
|
||||||
if (dm == null) {
|
if (dm == null) {
|
||||||
throw new IllegalArgumentException(
|
throw new IllegalArgumentException(
|
||||||
"Unknown field on persistent record [record=" + type + ", field=" + field + "]");
|
"Unknown field on persistent record [record=" + type + ", field=" + field + "]");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FieldMarshaller<?> fm = dm.getFieldMarshaller(field);
|
||||||
Map<String, FieldDefinition> fieldOverrides = _definitions.get(type);
|
Map<String, FieldDefinition> fieldOverrides = _definitions.get(type);
|
||||||
if (fieldOverrides != null) {
|
if (fieldOverrides != null) {
|
||||||
// first, see if there's a field override
|
// first, see if there's a field override
|
||||||
|
|||||||
Reference in New Issue
Block a user