diff options
author | Noel Grandin <noel@peralex.com> | 2013-04-17 13:54:28 +0200 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-04-19 07:51:41 +0000 |
commit | d62425cc27e04a3237cfec2ea2663b8b11284ec8 (patch) | |
tree | bc96f74a3460377c4d368ba2d3cbd56b2e8baa89 /dbaccess/qa | |
parent | Java cleanup in mediawiki extension (diff) | |
download | core-d62425cc27e04a3237cfec2ea2663b8b11284ec8.tar.gz core-d62425cc27e04a3237cfec2ea2663b8b11284ec8.zip |
Java cleanup, remove unnecessary casts
Change-Id: Id12089bc7df16631737e6acaee0973fb91dd953f
Reviewed-on: https://gerrit.libreoffice.org/3431
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'dbaccess/qa')
-rw-r--r-- | dbaccess/qa/complex/dbaccess/PropertyBag.java | 2 | ||||
-rw-r--r-- | dbaccess/qa/complex/dbaccess/UISettings.java | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/dbaccess/qa/complex/dbaccess/PropertyBag.java b/dbaccess/qa/complex/dbaccess/PropertyBag.java index 02389a783665..83bbee891d6c 100644 --- a/dbaccess/qa/complex/dbaccess/PropertyBag.java +++ b/dbaccess/qa/complex/dbaccess/PropertyBag.java @@ -294,7 +294,7 @@ public class PropertyBag extends TestCase { "BoolValue", Boolean.TRUE }, { "StringValue", "" }, { "IntegerValue", Integer.valueOf( 3 ) }, - { "InterfaceValue", (XInterface)m_bag } + { "InterfaceValue", m_bag } }; for ( int i=0; i<properties.length; ++i ) { diff --git a/dbaccess/qa/complex/dbaccess/UISettings.java b/dbaccess/qa/complex/dbaccess/UISettings.java index 14c7d32bad6b..2bac9c3bed33 100644 --- a/dbaccess/qa/complex/dbaccess/UISettings.java +++ b/dbaccess/qa/complex/dbaccess/UISettings.java @@ -78,9 +78,9 @@ public class UISettings extends TestCase tableViewController.getCurrentControl().getModel() ); // verify the properties - assertEquals( "wrong font name", "Andale Sans UI", (String)tableControlModel.getPropertyValue( "FontName" ) ); - assertEquals( "wrong font height", (float)20, ((Float)tableControlModel.getPropertyValue( "FontHeight" )).floatValue(), 0 ); - assertEquals( "wrong font slant", FontSlant.ITALIC, (FontSlant)tableControlModel.getPropertyValue( "FontSlant" ) ); + assertEquals( "wrong font name", "Andale Sans UI", tableControlModel.getPropertyValue( "FontName" ) ); + assertEquals( "wrong font height", 20, ((Float)tableControlModel.getPropertyValue( "FontHeight" )).floatValue(), 0 ); + assertEquals( "wrong font slant", FontSlant.ITALIC, tableControlModel.getPropertyValue( "FontSlant" ) ); // close the doc database.saveAndClose(); |