summaryrefslogtreecommitdiff
path: root/forms/qa
diff options
context:
space:
mode:
Diffstat (limited to 'forms/qa')
-rw-r--r--forms/qa/complex/forms/CheckOGroupBoxModel.java5
-rw-r--r--forms/qa/integration/forms/FormLayer.java2
2 files changed, 2 insertions, 5 deletions
diff --git a/forms/qa/complex/forms/CheckOGroupBoxModel.java b/forms/qa/complex/forms/CheckOGroupBoxModel.java
index 6f048a6aa160..b76cda3d02d8 100644
--- a/forms/qa/complex/forms/CheckOGroupBoxModel.java
+++ b/forms/qa/complex/forms/CheckOGroupBoxModel.java
@@ -127,8 +127,6 @@ public class CheckOGroupBoxModel
private String[] getBoundPropsToTest()
{
Property[] properties = m_xPropSet.getPropertySetInfo().getProperties();
- String[] testPropsNames = null;
-
ArrayList<String> tNames = new ArrayList<String>();
for (int i = 0; i < properties.length; i++)
@@ -151,8 +149,7 @@ public class CheckOGroupBoxModel
} // endfor
//get a array of bound properties
- testPropsNames = new String[tNames.size()];
- testPropsNames = tNames.toArray(testPropsNames);
+ String[] testPropsNames = tNames.toArray(new String[tNames.size()]);
return testPropsNames;
}
diff --git a/forms/qa/integration/forms/FormLayer.java b/forms/qa/integration/forms/FormLayer.java
index a86f6f1aeb6b..e7c33a0a61f2 100644
--- a/forms/qa/integration/forms/FormLayer.java
+++ b/forms/qa/integration/forms/FormLayer.java
@@ -102,7 +102,7 @@ public class FormLayer
// insert the model into the form component hierarchy, if the caller gave us a location
if ( null != _parentForm )
{
- XIndexContainer parentForm = null;
+ XIndexContainer parentForm;
if ( _parentForm instanceof XIndexContainer )
parentForm = (XIndexContainer)_parentForm;
else