diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-12 15:12:27 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-19 14:57:18 +0200 |
commit | 0764292c5dcb7daa62e9adeb1ac9af1dbe14066f (patch) | |
tree | 17a4e9f2393d23aaba1e68bbc944aa8e18b9e2f6 /forms/qa/integration/forms/FormControlTest.java | |
parent | 8a2c6c29af41cd7a62f37861fb0d4e81a857bb45 (diff) |
java: use 'Short.valueOf' instead of 'new Short'
Change-Id: Icef19ef61ee0af2dd3bda527263934006271f219
Diffstat (limited to 'forms/qa/integration/forms/FormControlTest.java')
-rw-r--r-- | forms/qa/integration/forms/FormControlTest.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/forms/qa/integration/forms/FormControlTest.java b/forms/qa/integration/forms/FormControlTest.java index 323b15f74715..d78fd581d133 100644 --- a/forms/qa/integration/forms/FormControlTest.java +++ b/forms/qa/integration/forms/FormControlTest.java @@ -223,7 +223,7 @@ public class FormControlTest extends complexlib.ComplexTestCase implements XSQLE } XPropertySet checkModel = getControlModel( "f_tinyint" ); - checkModel.setPropertyValue( "State", new Short( (short)0 ) ); + checkModel.setPropertyValue( "State", Short.valueOf( (short)0 ) ); // setting the state of the check box needs to be reflected in the formatted field immediately if ( !checkDoubleValue( 0, "f_tinyint_format", "EffectiveValue" ) ) @@ -233,7 +233,7 @@ public class FormControlTest extends complexlib.ComplexTestCase implements XSQLE } // same for the "indetermined" state of the check box - checkModel.setPropertyValue( "State", new Short( (short)2 ) ); + checkModel.setPropertyValue( "State", Short.valueOf( (short)2 ) ); if ( !checkNullValue( "f_tinyint_format", "EffectiveValue" ) ) { failed( "cross-update failed: updating the check box should result in updating the same-bound formatted field (2)!" ); @@ -294,7 +294,7 @@ public class FormControlTest extends complexlib.ComplexTestCase implements XSQLE } XPropertySet radioModel = getRadioModel( "radio_group", "normal" ); - radioModel.setPropertyValue( "State", new Short( (short)1 ) ); + radioModel.setPropertyValue( "State", Short.valueOf( (short)1 ) ); // setting the state of the radio button needs to be reflected in the formatted field immediately if ( !checkStringValue( "normal", "f_text_enum_text", "Text" ) ) @@ -304,7 +304,7 @@ public class FormControlTest extends complexlib.ComplexTestCase implements XSQLE } // same for the "indetermined" state of the check box - getRadioModel( "radio_group", "important" ).setPropertyValue( "State", new Short( (short)1 ) ); + getRadioModel( "radio_group", "important" ).setPropertyValue( "State", Short.valueOf( (short)1 ) ); if ( !checkStringValue( "important", "f_text_enum_text", "Text" ) ) { failed( "cross-update failed: updating the radio button should result in updating the same-bound text field (2)!" ); @@ -526,12 +526,12 @@ public class FormControlTest extends complexlib.ComplexTestCase implements XSQLE m_formLayer.insertControlLine( "DatabaseFormattedField","f_tinyint", "_format",80, 41, 6 ); m_formLayer.insertControlLine( "DatabaseTextField", "dummy", "", 150 ); - xIDField.setPropertyValue( "DecimalAccuracy", new Short( (short)0 ) ); + xIDField.setPropertyValue( "DecimalAccuracy", Short.valueOf( (short)0 ) ); xImageField.setPropertyValue( "ScaleImage", Boolean.TRUE ); xImageField.setPropertyValue( "Tabstop", Boolean.TRUE ); xCheckBox.setPropertyValue( "TriState", Boolean.TRUE ); - xCheckBox.setPropertyValue( "DefaultState", new Short( (short)2 ) ); - xTimeField.setPropertyValue( "TimeFormat", new Short( (short)1 ) ); + xCheckBox.setPropertyValue( "DefaultState", Short.valueOf( (short)2 ) ); + xTimeField.setPropertyValue( "TimeFormat", Short.valueOf( (short)1 ) ); xTimeField.setPropertyValue( "TimeMax", Integer.valueOf( 23595999 ) ); xReqField.setPropertyValue( "ConvertEmptyToNull", Boolean.FALSE ); |