Skip to content
Browse files
Improved: The ‘ModelFieldType’ class members should be private.

Makes the class members private and remove the default public constructor.

jleroux: All these members are only used in the class and the default public 
constructor is useless (it would be automatically added by the compiler if 
there was no other constructors, and there is one)

Thanks: Mathieu Lirzin

git-svn-id: 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
JacquesLeRoux committed Jan 8, 2019
1 parent 08fc69e commit f30cf03e0bf2a29d01fa3edf44824c2536e85538
Showing with 5 additions and 12 deletions.
  1. +5 −12 framework/entity/src/main/java/org/apache/ofbiz/entity/model/
@@ -36,22 +36,15 @@ public class ModelFieldType implements Serializable {
public static final String module = ModelFieldType.class.getName();

/** The type of the Field */
protected String type = null;

private String type;
/** The java-type of the Field */
protected String javaType = null;

private String javaType;
/** The JDBC value handler for this Field */
protected JdbcValueHandler<?> jdbcValueHandler = null;

private JdbcValueHandler<?> jdbcValueHandler;
/** The sql-type of the Field */
protected String sqlType = null;

private String sqlType;
/** The sql-type-alias of the Field, this is optional */
protected String sqlTypeAlias = null;

/** Default Constructor */
public ModelFieldType() {}
private String sqlTypeAlias;

/** XML Constructor */
public ModelFieldType(Element fieldTypeElement) {

0 comments on commit f30cf03

Please sign in to comment.