summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-12 15:09:06 +0200
committerNoel Grandin <noel@peralex.com>2014-08-19 14:57:17 +0200
commitff0ad0493ee1729c726587f667761b04101d774c (patch)
tree8c0f97e8740fbdb2ed0cdbfc5d99d82cae8f7df6 /sfx2
parentbe1bb7b1ccee28be616b89cc95e97d656e78bbe3 (diff)
java: use 'Integer.valueOf' instead of 'new Integer'
Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/qa/complex/sfx2/DocumentProperties.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/sfx2/qa/complex/sfx2/DocumentProperties.java b/sfx2/qa/complex/sfx2/DocumentProperties.java
index 653c54092a25..ded17fb662b1 100644
--- a/sfx2/qa/complex/sfx2/DocumentProperties.java
+++ b/sfx2/qa/complex/sfx2/DocumentProperties.java
@@ -206,9 +206,9 @@ public class DocumentProperties
NamedValue[] ds = xDP.getDocumentStatistics();
assertTrue("DocumentStatistics:WordCount", containsNV(ds,
- new NamedValue("WordCount", new Integer(23))));
+ new NamedValue("WordCount", Integer.valueOf(23))));
assertTrue("DocumentStatistics:PageCount", containsNV(ds,
- new NamedValue("PageCount", new Integer(1))));
+ new NamedValue("PageCount", Integer.valueOf(1))));
XPropertyContainer udpc = xDP.getUserDefinedProperties();
XPropertySet udps = UnoRuntime.queryInterface( XPropertySet.class, udpc );
@@ -302,17 +302,17 @@ public class DocumentProperties
assertTrue("setKeywords", fromArray(kws).containsAll(fromArray(kws2)));
NamedValue[] ds2 = new NamedValue[] {
- new NamedValue("SyllableCount", new Integer(9)),
- new NamedValue("FrameCount", new Integer(2)),
- new NamedValue("SentenceCount", new Integer(7)) };
+ new NamedValue("SyllableCount", Integer.valueOf(9)),
+ new NamedValue("FrameCount", Integer.valueOf(2)),
+ new NamedValue("SentenceCount", Integer.valueOf(7)) };
xDP.setDocumentStatistics(ds2);
ds = xDP.getDocumentStatistics();
assertTrue("setDocumentStatistics:SyllableCount", containsNV(ds,
- new NamedValue("SyllableCount", new Integer(9))));
+ new NamedValue("SyllableCount", Integer.valueOf(9))));
assertTrue("setDocumentStatistics:FrameCount", containsNV(ds,
- new NamedValue("FrameCount", new Integer(2))));
+ new NamedValue("FrameCount", Integer.valueOf(2))));
assertTrue("setDocumentStatistics:SentenceCount", containsNV(ds,
- new NamedValue("SentenceCount", new Integer(7))));
+ new NamedValue("SentenceCount", Integer.valueOf(7))));
System.out.println("...done");