From 8a2c6c29af41cd7a62f37861fb0d4e81a857bb45 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 12 Aug 2014 15:10:41 +0200 Subject: java: use 'Long.valueOf' instead of 'new Long' Change-Id: If4fff3dd37326fbcdd01b743355a16591d71fa69 --- qadevOOo/runner/helper/InetTools.java | 2 +- qadevOOo/runner/util/ValueChanger.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'qadevOOo/runner') diff --git a/qadevOOo/runner/helper/InetTools.java b/qadevOOo/runner/helper/InetTools.java index 2a5371d8ddaf..1ab8a2fe68a9 100644 --- a/qadevOOo/runner/helper/InetTools.java +++ b/qadevOOo/runner/helper/InetTools.java @@ -65,7 +65,7 @@ public class InetTools { oInetProps.setPropertyValue("ooInetHTTPProxyName", HTTPProxyName); oInetProps.setPropertyValue("ooInetHTTPProxyPort", HTTPProxyPort); - oInetProps.setPropertyValue("ooInetProxyType", new Long(2)); + oInetProps.setPropertyValue("ooInetProxyType", Long.valueOf(2)); XChangesBatch oSecureChange = UnoRuntime.queryInterface( XChangesBatch.class, oInet); diff --git a/qadevOOo/runner/util/ValueChanger.java b/qadevOOo/runner/util/ValueChanger.java index db95579f162c..a197c1b65d69 100644 --- a/qadevOOo/runner/util/ValueChanger.java +++ b/qadevOOo/runner/util/ValueChanger.java @@ -60,7 +60,7 @@ public class ValueChanger { if (oldValue instanceof Long) { long oldlong = ((Long) oldValue).longValue(); - newValue = new Long(oldlong + 15); + newValue = Long.valueOf(oldlong + 15); } else if (oldValue instanceof Short) { -- cgit