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 /qadevOOo/testdocs | |
parent | be1bb7b1ccee28be616b89cc95e97d656e78bbe3 (diff) |
java: use 'Integer.valueOf' instead of 'new Integer'
Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
Diffstat (limited to 'qadevOOo/testdocs')
-rw-r--r-- | qadevOOo/testdocs/backend/org/openoffice/JavaSystemBackend.java | 2 | ||||
-rw-r--r-- | qadevOOo/testdocs/qadevlibs/source/com/sun/star/cmp/MyPersistObject.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/qadevOOo/testdocs/backend/org/openoffice/JavaSystemBackend.java b/qadevOOo/testdocs/backend/org/openoffice/JavaSystemBackend.java index 5393c4f15121..2a633c08e403 100644 --- a/qadevOOo/testdocs/backend/org/openoffice/JavaSystemBackend.java +++ b/qadevOOo/testdocs/backend/org/openoffice/JavaSystemBackend.java @@ -230,7 +230,7 @@ public class JavaSystemBackend implements XSingleLayerStratum, XTypeProvider, PropertyInfo[] pInfo = new PropertyInfo[1]; pInfo[0] = new PropertyInfo(); pInfo[0].Name = "org.openoffice.Office.Common/Undo/Steps"; - pInfo[0].Value = new Integer(12); + pInfo[0].Value = Integer.valueOf(12); pInfo[0].Type = "int"; pInfo[0].Protected = false; xLayerContentDescriber.describeLayer(xLayerHandler, pInfo); diff --git a/qadevOOo/testdocs/qadevlibs/source/com/sun/star/cmp/MyPersistObject.java b/qadevOOo/testdocs/qadevlibs/source/com/sun/star/cmp/MyPersistObject.java index a3fdd14658d2..6af61067447d 100644 --- a/qadevOOo/testdocs/qadevlibs/source/com/sun/star/cmp/MyPersistObject.java +++ b/qadevOOo/testdocs/qadevlibs/source/com/sun/star/cmp/MyPersistObject.java @@ -208,7 +208,7 @@ public class MyPersistObject implements XPersistObject, XTypeProvider, if ( property.equals(props[0].Name)) return new Byte(by); if ( property.equals(props[1].Name)) - return new Integer(i); + return Integer.valueOf(i); if ( property.equals(props[2].Name)) return new Character(c); if ( property.equals(props[3].Name)) |