summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/text
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-15 14:14:28 +0200
committerNoel Grandin <noel@peralex.com>2014-10-16 08:15:43 +0200
commitecc90694175190cd6e2b9d1bed8f32850d41ce88 (patch)
treed5c9fb3cc3cc52be2e7729ca0e96675c7493fdfd /wizards/com/sun/star/wizards/text
parent95a2f7390753c4edcec70626b6d91c63a7c200ff (diff)
java: use 'Short.valueOf' instead of 'new Short'
Change-Id: I2f0156899b75dd8a3a5600be887b6ac9b6fbdec0
Diffstat (limited to 'wizards/com/sun/star/wizards/text')
-rw-r--r--wizards/com/sun/star/wizards/text/TextDocument.java3
-rw-r--r--wizards/com/sun/star/wizards/text/TextFieldHandler.java2
2 files changed, 2 insertions, 3 deletions
diff --git a/wizards/com/sun/star/wizards/text/TextDocument.java b/wizards/com/sun/star/wizards/text/TextDocument.java
index 618b1b3b5485..8898fcc172f5 100644
--- a/wizards/com/sun/star/wizards/text/TextDocument.java
+++ b/wizards/com/sun/star/wizards/text/TextDocument.java
@@ -43,7 +43,6 @@ import com.sun.star.lang.Locale;
import com.sun.star.lang.WrappedTargetException;
import com.sun.star.lang.XComponent;
import com.sun.star.lang.XMultiServiceFactory;
-
import com.sun.star.style.XStyle;
import com.sun.star.style.XStyleFamiliesSupplier;
import com.sun.star.task.XStatusIndicatorFactory;
@@ -270,7 +269,7 @@ public class TextDocument
ViewHandler myViewHandler = new ViewHandler(xMSFDoc, xTextDocument);
try
{
- myViewHandler.setViewSetting("ZoomType", new Short(com.sun.star.view.DocumentZoomType.ENTIRE_PAGE));
+ myViewHandler.setViewSetting("ZoomType", Short.valueOf(com.sun.star.view.DocumentZoomType.ENTIRE_PAGE));
}
catch (Exception e)
{
diff --git a/wizards/com/sun/star/wizards/text/TextFieldHandler.java b/wizards/com/sun/star/wizards/text/TextFieldHandler.java
index eb3b25e63a28..e4fdb0915402 100644
--- a/wizards/com/sun/star/wizards/text/TextFieldHandler.java
+++ b/wizards/com/sun/star/wizards/text/TextFieldHandler.java
@@ -297,7 +297,7 @@ public class TextFieldHandler
{
try
{
- XDependentTextField[] xDependentTextFields = getTextFieldsByProperty("UserDataType", new Short(UserDataPart), "Short");
+ XDependentTextField[] xDependentTextFields = getTextFieldsByProperty("UserDataType", Short.valueOf(UserDataPart), "Short");
if (xDependentTextFields != null)
{
for (int i = 0; i < xDependentTextFields.length; i++)