From be1bb7b1ccee28be616b89cc95e97d656e78bbe3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 12 Aug 2014 14:00:54 +0200 Subject: java: use Boolean.valueOf instead of instantiating Boolean objects Change-Id: Ie41d6b0170a035a694dd270c311a137fd1810e74 --- odk/examples/DevelopersGuide/Spreadsheet/GeneralTableSample.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'odk/examples/DevelopersGuide/Spreadsheet/GeneralTableSample.java') diff --git a/odk/examples/DevelopersGuide/Spreadsheet/GeneralTableSample.java b/odk/examples/DevelopersGuide/Spreadsheet/GeneralTableSample.java index b018c55be9ef..f25a9cfded8f 100644 --- a/odk/examples/DevelopersGuide/Spreadsheet/GeneralTableSample.java +++ b/odk/examples/DevelopersGuide/Spreadsheet/GeneralTableSample.java @@ -167,7 +167,7 @@ public class GeneralTableSample extends SpreadsheetDocHelper aColumnObj = xColumnsName.getByName( "D" ); xPropSet = UnoRuntime.queryInterface( com.sun.star.beans.XPropertySet.class, aColumnObj ); - xPropSet.setPropertyValue( "IsVisible", new Boolean( false ) ); + xPropSet.setPropertyValue( "IsVisible", Boolean.FALSE ); // Get row 7 by index (interface XIndexAccess) Object aRowObj = xRows.getByIndex( 6 ); -- cgit