diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-12 15:09:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-19 14:57:17 +0200 |
commit | ff0ad0493ee1729c726587f667761b04101d774c (patch) | |
tree | 8c0f97e8740fbdb2ed0cdbfc5d99d82cae8f7df6 /scripting/java/com/sun/star/script | |
parent | be1bb7b1ccee28be616b89cc95e97d656e78bbe3 (diff) |
java: use 'Integer.valueOf' instead of 'new Integer'
Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
Diffstat (limited to 'scripting/java/com/sun/star/script')
-rw-r--r-- | scripting/java/com/sun/star/script/framework/browse/DialogFactory.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripting/java/com/sun/star/script/framework/browse/DialogFactory.java b/scripting/java/com/sun/star/script/framework/browse/DialogFactory.java index 6e46e193f8cf..78c97cf5b07a 100644 --- a/scripting/java/com/sun/star/script/framework/browse/DialogFactory.java +++ b/scripting/java/com/sun/star/script/framework/browse/DialogFactory.java @@ -131,10 +131,10 @@ public class DialogFactory { XPropertySet props = UnoRuntime.queryInterface(XPropertySet.class, o); - props.setPropertyValue("PositionX", new Integer(x)); - props.setPropertyValue("PositionY", new Integer(y)); - props.setPropertyValue("Height", new Integer(height)); - props.setPropertyValue("Width", new Integer(width)); + props.setPropertyValue("PositionX", Integer.valueOf(x)); + props.setPropertyValue("PositionY", Integer.valueOf(y)); + props.setPropertyValue("Height", Integer.valueOf(height)); + props.setPropertyValue("Width", Integer.valueOf(width)); } private XDialog createInputDialog(String title, String prompt) |