* minor QA improvement: converted "new Boolean" to "Boolean.valueOf"

This commit is contained in:
teo_sarca 2007-03-01 14:38:26 +00:00
parent c1799b2894
commit ceddf97f60
1 changed files with 3 additions and 3 deletions

View File

@ -630,7 +630,7 @@ public class GridField
// Boolean // Boolean
if (m_vo.displayType == DisplayType.YesNo) if (m_vo.displayType == DisplayType.YesNo)
return new Boolean ("Y".equals(value)); return Boolean.valueOf ("Y".equals(value));
// Default // Default
return value; return value;
@ -1043,13 +1043,13 @@ public class GridField
if (LinkColumnName.length() == 0) if (LinkColumnName.length() == 0)
; ;
else else
m_parentValue = new Boolean(m_vo.ColumnName.equals(LinkColumnName)); m_parentValue = Boolean.valueOf(m_vo.ColumnName.equals(LinkColumnName));
if (m_parentValue) if (m_parentValue)
log.config(m_parentValue log.config(m_parentValue
+ " - Link(" + LinkColumnName + ", W=" + m_vo.WindowNo + ",T=" + m_vo.TabNo + " - Link(" + LinkColumnName + ", W=" + m_vo.WindowNo + ",T=" + m_vo.TabNo
+ ") = " + m_vo.ColumnName); + ") = " + m_vo.ColumnName);
else else
m_parentValue = new Boolean(isIndirectParentValue()); m_parentValue = Boolean.valueOf(isIndirectParentValue());
} }
return m_parentValue.booleanValue(); return m_parentValue.booleanValue();
} // isParentValue } // isParentValue