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 /nlpsolver | |
parent | be1bb7b1ccee28be616b89cc95e97d656e78bbe3 (diff) |
java: use 'Integer.valueOf' instead of 'new Integer'
Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
Diffstat (limited to 'nlpsolver')
-rw-r--r-- | nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/BaseControl.java | 8 | ||||
-rw-r--r-- | nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/Label.java | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/BaseControl.java b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/BaseControl.java index 6277ba0125c9..2af5b1176046 100644 --- a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/BaseControl.java +++ b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/BaseControl.java @@ -122,13 +122,13 @@ public abstract class BaseControl { // <editor-fold defaultstate="collapsed" desc="Uno Properties"> public void setPosition(int x, int y) { - setProperty("PositionX", new Integer(x)); - setProperty("PositionY", new Integer(y)); + setProperty("PositionX", Integer.valueOf(x)); + setProperty("PositionY", Integer.valueOf(y)); } public void setSize(int width, int height) { - setProperty("Width", new Integer(width)); - setProperty("Height", new Integer(height)); + setProperty("Width", Integer.valueOf(width)); + setProperty("Height", Integer.valueOf(height)); } public void setEnabled(boolean enabled) { diff --git a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/Label.java b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/Label.java index 5b7fdf348888..689350ce297b 100644 --- a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/Label.java +++ b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/Label.java @@ -61,7 +61,7 @@ public class Label extends LabeledControl { public void setTextColor(int RGB) { - setProperty("TextColor", new Integer(RGB)); + setProperty("TextColor", Integer.valueOf(RGB)); } public int getTextColor() { |