summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/ifc/text/_FootnoteSettings.java
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/tests/java/ifc/text/_FootnoteSettings.java
parent8a2c6c29af41cd7a62f37861fb0d4e81a857bb45 (diff)
java: use 'Short.valueOf' instead of 'new Short'
Change-Id: Icef19ef61ee0af2dd3bda527263934006271f219
Diffstat (limited to 'qadevOOo/tests/java/ifc/text/_FootnoteSettings.java')
-rw-r--r--qadevOOo/tests/java/ifc/text/_FootnoteSettings.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/qadevOOo/tests/java/ifc/text/_FootnoteSettings.java b/qadevOOo/tests/java/ifc/text/_FootnoteSettings.java
index 8e6db87a3f31..77cc50d87274 100644
--- a/qadevOOo/tests/java/ifc/text/_FootnoteSettings.java
+++ b/qadevOOo/tests/java/ifc/text/_FootnoteSettings.java
@@ -73,8 +73,8 @@ public class _FootnoteSettings extends MultiPropertyTest {
* value must be defined.
*/
public void _NumberingType() {
- Short val1 = new Short(com.sun.star.text.FootnoteNumbering.PER_DOCUMENT);
- Short val2 = new Short(com.sun.star.text.FootnoteNumbering.PER_PAGE);
+ Short val1 = Short.valueOf(com.sun.star.text.FootnoteNumbering.PER_DOCUMENT);
+ Short val2 = Short.valueOf(com.sun.star.text.FootnoteNumbering.PER_PAGE);
log.println("Testing with custom Property tester") ;
testProperty("NumberingType", val1, val2) ;
}
@@ -84,8 +84,8 @@ public class _FootnoteSettings extends MultiPropertyTest {
* value must be defined.
*/
public void _FootnoteCounting() {
- Short val1 = new Short( (short) 1 );
- Short val2 = new Short( (short) 2 );
+ Short val1 = Short.valueOf( (short) 1 );
+ Short val2 = Short.valueOf( (short) 2 );
log.println("Testing with custom Property tester") ;
testProperty("FootnoteCounting", val1, val2) ;
}