From ff0ad0493ee1729c726587f667761b04101d774c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 12 Aug 2014 15:09:06 +0200 Subject: java: use 'Integer.valueOf' instead of 'new Integer' Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940 --- scripting/examples/java/Highlight/HighlightText.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripting/examples/java/Highlight/HighlightText.java') diff --git a/scripting/examples/java/Highlight/HighlightText.java b/scripting/examples/java/Highlight/HighlightText.java index 11f5249acba8..8da530161ae7 100644 --- a/scripting/examples/java/Highlight/HighlightText.java +++ b/scripting/examples/java/Highlight/HighlightText.java @@ -152,7 +152,7 @@ public class HighlightText implements com.sun.star.awt.XActionListener { // Sets the replaced text property color value to RGB parameter PropertyValue cv = new PropertyValue("CharColor", -1, - new Integer(red), + Integer.valueOf(red), com.sun.star.beans.PropertyState.DIRECT_VALUE); // Apply the properties -- cgit