Improved: The ‘ModelFieldType’ class members should be private.

(OFBIZ-10773)

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)
http://tutorials.jenkov.com/java/constructors.html#default-no-arg-constructors

Thanks: Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1850728 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2019-01-08 10:57:44 +00:00
parent 08fc69e679
commit f30cf03e0b
@@ -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) {