summaryrefslogtreecommitdiffstats
path: root/qadevOOo/runner
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-12 15:12:27 +0200
committerNoel Grandin <noel@peralex.com>2014-08-19 14:57:18 +0200
commit0764292c5dcb7daa62e9adeb1ac9af1dbe14066f (patch)
tree17a4e9f2393d23aaba1e68bbc944aa8e18b9e2f6 /qadevOOo/runner
parentjava: use 'Long.valueOf' instead of 'new Long' (diff)
downloadcore-0764292c5dcb7daa62e9adeb1ac9af1dbe14066f.tar.gz
core-0764292c5dcb7daa62e9adeb1ac9af1dbe14066f.zip
java: use 'Short.valueOf' instead of 'new Short'
Change-Id: Icef19ef61ee0af2dd3bda527263934006271f219
Diffstat (limited to 'qadevOOo/runner')
-rw-r--r--qadevOOo/runner/helper/ContextMenuInterceptor.java2
-rw-r--r--qadevOOo/runner/util/DesktopTools.java2
-rw-r--r--qadevOOo/runner/util/ValueChanger.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/qadevOOo/runner/helper/ContextMenuInterceptor.java b/qadevOOo/runner/helper/ContextMenuInterceptor.java
index 87844522865d..e87c296aae6d 100644
--- a/qadevOOo/runner/helper/ContextMenuInterceptor.java
+++ b/qadevOOo/runner/helper/ContextMenuInterceptor.java
@@ -53,7 +53,7 @@ public class ContextMenuInterceptor implements XContextMenuInterceptor {
UnoRuntime.queryInterface(
XPropertySet.class,
xMenuElementFactory.createInstance("com.sun.star.ui.ActionTriggerSeparator" ) );
- Short aSeparatorType = new Short( ActionTriggerSeparatorType.LINE );
+ Short aSeparatorType = Short.valueOf( ActionTriggerSeparatorType.LINE );
xSeparator.setPropertyValue( "SeparatorType", aSeparatorType );
// query sub menu for index container to get access
diff --git a/qadevOOo/runner/util/DesktopTools.java b/qadevOOo/runner/util/DesktopTools.java
index 075980db9b03..d44182cdb2ac 100644
--- a/qadevOOo/runner/util/DesktopTools.java
+++ b/qadevOOo/runner/util/DesktopTools.java
@@ -400,7 +400,7 @@ public class DesktopTools
XInterface oViewSettings = oVSSupp.getViewSettings();
XPropertySet oViewProp = UnoRuntime.queryInterface(XPropertySet.class, oViewSettings);
oViewProp.setPropertyValue("ZoomType",
- new Short(com.sun.star.view.DocumentZoomType.ENTIRE_PAGE));
+ Short.valueOf(com.sun.star.view.DocumentZoomType.ENTIRE_PAGE));
utils.shortWait(5000);
}
diff --git a/qadevOOo/runner/util/ValueChanger.java b/qadevOOo/runner/util/ValueChanger.java
index a197c1b65d69..f4b57aa771a1 100644
--- a/qadevOOo/runner/util/ValueChanger.java
+++ b/qadevOOo/runner/util/ValueChanger.java
@@ -65,7 +65,7 @@ public class ValueChanger {
if (oldValue instanceof Short) {
short oldshort = ((Short) oldValue).shortValue();
- newValue = new Short((short) (oldshort + 1));
+ newValue = Short.valueOf((short) (oldshort + 1));
} else
if (oldValue instanceof Byte) {