diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-15 11:38:05 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-16 08:15:41 +0200 |
commit | f882a157fcae80de52cb8024655739f5a75d5b39 (patch) | |
tree | 85b4dba62096c42c26f21f2a22915aef9cc2b7fe /wizards/com/sun/star/wizards/report/DBColumn.java | |
parent | 485c208626d435e1693d3623470c74f4b1e065e9 (diff) |
java: use 'Integer.valueOf' instead of 'new Integer'
Change-Id: Ia4a847b58862e4f25d64a862f504b629fa336c63
Diffstat (limited to 'wizards/com/sun/star/wizards/report/DBColumn.java')
-rw-r--r-- | wizards/com/sun/star/wizards/report/DBColumn.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wizards/com/sun/star/wizards/report/DBColumn.java b/wizards/com/sun/star/wizards/report/DBColumn.java index 3be19016063b..d122637fc551 100644 --- a/wizards/com/sun/star/wizards/report/DBColumn.java +++ b/wizards/com/sun/star/wizards/report/DBColumn.java @@ -284,7 +284,7 @@ public class DBColumn if (bAlignLeft) { xValCellCursor = TextDocument.createTextCursor(xValCell); - Helper.setUnoPropertyValue(xValCellCursor, "ParaAdjust", new Integer(com.sun.star.style.ParagraphAdjust.LEFT_value)); + Helper.setUnoPropertyValue(xValCellCursor, "ParaAdjust", Integer.valueOf(com.sun.star.style.ParagraphAdjust.LEFT_value)); } } catch (Exception exception) @@ -361,7 +361,7 @@ public class DBColumn modifyCellContent(CurGroupValue); if (bAlignLeft) { - Helper.setUnoPropertyValue(xValCellCursor, "ParaAdjust", new Integer(ParagraphAdjust.LEFT_value)); + Helper.setUnoPropertyValue(xValCellCursor, "ParaAdjust", Integer.valueOf(ParagraphAdjust.LEFT_value)); } int nFieldType = CurDBField.getFieldType(); @@ -372,7 +372,7 @@ public class DBColumn Helper.setUnoPropertyValue(xValCellCursor, "CharFontName", CharFontName); if (!bIsGroupColumn) { - Helper.setUnoPropertyValue(xValCellCursor, "ParaAdjust", new Integer(ParagraphAdjust.CENTER_value)); + Helper.setUnoPropertyValue(xValCellCursor, "ParaAdjust", Integer.valueOf(ParagraphAdjust.CENTER_value)); } } else |