Improved: Corrected remaining ', is not followed by whitespace' checkstyle errors in framework component.
(OFBIZ-11805)
This commit is contained in:
@@ -1612,7 +1612,7 @@ public class ModelEntity implements Comparable<ModelEntity>, Serializable {
|
||||
attributeMap.put("externalType", sqlType.substring(0, sqlType.indexOf('(')));
|
||||
// since there is a field length set that
|
||||
String widthStr = sqlType.substring(sqlType.indexOf('(') + 1, sqlType.indexOf(')'));
|
||||
// if there is a comma split by it for width,precision
|
||||
// if there is a comma split by it for width, precision
|
||||
if (widthStr.indexOf(',') >= 0) {
|
||||
attributeMap.put("width", widthStr.substring(0, widthStr.indexOf(',')));
|
||||
// since there is a field precision set that
|
||||
|
||||
+1
-1
@@ -109,7 +109,7 @@ public class ModelEntityChecker {
|
||||
Iterator<ModelField> fieldIter = entity.getFieldsIterator();
|
||||
while (fieldIter.hasNext()) {
|
||||
ModelField field = fieldIter.next();
|
||||
ModelFieldType type = delegator.getEntityFieldType(entity,field.getType());
|
||||
ModelFieldType type = delegator.getEntityFieldType(entity, field.getType());
|
||||
|
||||
if (ufields.contains(field.getName())) {
|
||||
warningList.add("[FieldNotUnique] Field [" + field.getName() + " of entity " + entity.getEntityName() + " is not unique for that entity.");
|
||||
|
||||
@@ -409,7 +409,7 @@ public class ModelReader implements Serializable {
|
||||
if (Debug.infoOn()
|
||||
&& !(title + curModelEntity.getEntityName()).equals(modelRelation.getTitle() + modelRelation.getRelEntityName())) {
|
||||
// String errorMsg = "Relation already exists to entity [] with title ["
|
||||
// + targetTitle + "],from entity []";
|
||||
// + targetTitle + "], from entity []";
|
||||
String message = "Entity [" + relatedEnt.getPackageName() + ":" + relatedEnt.getEntityName()
|
||||
+ "] already has identical relationship to entity [" + curModelEntity.getEntityName() + "] title [" + title
|
||||
+ "]; would auto-create: type [" + newRel.getType() + "] and fields [" + newRel.keyMapString(",", "") + "]";
|
||||
|
||||
@@ -1405,7 +1405,7 @@ public class ModelViewEntity extends ModelEntity {
|
||||
if (!((this.operator == EntityOperator.IN || this.operator == EntityOperator.BETWEEN)
|
||||
&& value instanceof Collection<?>)) {
|
||||
// now to a type conversion for the target fieldName
|
||||
value = this.viewEntityCondition.modelViewEntity.convertFieldValue(lhsField, value,modelFieldTypeReader, new HashMap<>());
|
||||
value = this.viewEntityCondition.modelViewEntity.convertFieldValue(lhsField, value, modelFieldTypeReader, new HashMap<>());
|
||||
}
|
||||
|
||||
if (Debug.verboseOn()) Debug.logVerbose("[" + this.viewEntityCondition.modelViewEntity.getEntityName() + "]: Got value for fieldName [" + fieldName + "]: " + value, MODULE);
|
||||
|
||||
@@ -425,7 +425,7 @@ public final class EntityUtil {
|
||||
}
|
||||
entity.remove("thruDate");
|
||||
} else {
|
||||
entity.set("thruDate",now);
|
||||
entity.set("thruDate", now);
|
||||
}
|
||||
entity.store();
|
||||
}
|
||||
@@ -443,7 +443,7 @@ public final class EntityUtil {
|
||||
if (now.equals(search.get("fromDate"))) {
|
||||
return EntityUtil.getOnly(EntityQuery.use(delegator).from(entityName).where(search).queryList());
|
||||
} else {
|
||||
search.put("fromDate",now);
|
||||
search.put("fromDate", now);
|
||||
search.remove("thruDate");
|
||||
return delegator.makeValue(entityName, search);
|
||||
}
|
||||
@@ -456,7 +456,7 @@ public final class EntityUtil {
|
||||
public static void delDatedInclusionEntity(Delegator delegator, String entityName, Map<String, ? extends Object> search, Timestamp now) throws GenericEntityException {
|
||||
List<GenericValue> entities = findDatedInclusionEntity(delegator, entityName, search, now);
|
||||
for (GenericValue entity: entities) {
|
||||
entity.set("thruDate",now);
|
||||
entity.set("thruDate", now);
|
||||
entity.store();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user