diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-12 15:10:41 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-19 14:57:17 +0200 |
commit | 8a2c6c29af41cd7a62f37861fb0d4e81a857bb45 (patch) | |
tree | 87575bd76a2ce98793d2bb1773ddc4a9c4e5e41c /qadevOOo/runner | |
parent | ff0ad0493ee1729c726587f667761b04101d774c (diff) |
java: use 'Long.valueOf' instead of 'new Long'
Change-Id: If4fff3dd37326fbcdd01b743355a16591d71fa69
Diffstat (limited to 'qadevOOo/runner')
-rw-r--r-- | qadevOOo/runner/helper/InetTools.java | 2 | ||||
-rw-r--r-- | qadevOOo/runner/util/ValueChanger.java | 2 |
2 files changed, 2 insertions, 2 deletions
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) { |