aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/util/TestPOILogger.java
diff options
context:
space:
mode:
authorJosh Micich <josh@apache.org>2009-10-08 22:29:41 +0000
committerJosh Micich <josh@apache.org>2009-10-08 22:29:41 +0000
commit78e643fe2184d931b08120ee5f29e2b2e9daf3c1 (patch)
treede68356537068f7231623438ee80cd456046a35b /src/testcases/org/apache/poi/util/TestPOILogger.java
parent8f4139a9a6041ec05a30223f84f39e0939bc863b (diff)
downloadpoi-78e643fe2184d931b08120ee5f29e2b2e9daf3c1.tar.gz
poi-78e643fe2184d931b08120ee5f29e2b2e9daf3c1.zip
Bugzilla 47962 - Fixed some potential NPEs. Avoided unnecessary creation of box instances. Applied patch with mods
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@823348 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/util/TestPOILogger.java')
-rw-r--r--src/testcases/org/apache/poi/util/TestPOILogger.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testcases/org/apache/poi/util/TestPOILogger.java b/src/testcases/org/apache/poi/util/TestPOILogger.java
index 90732d3637..a3d34fac17 100644
--- a/src/testcases/org/apache/poi/util/TestPOILogger.java
+++ b/src/testcases/org/apache/poi/util/TestPOILogger.java
@@ -39,8 +39,8 @@ public final class TestPOILogger extends TestCase {
POILogger log = POILogFactory.getLogger( "foo" );
- log.log( POILogger.WARN, "Test = ", new Integer( 1 ) );
- log.logFormatted( POILogger.ERROR, "Test param 1 = %, param 2 = %", "2", new Integer( 3 ) );
+ log.log( POILogger.WARN, "Test = ", Integer.valueOf( 1 ) );
+ log.logFormatted( POILogger.ERROR, "Test param 1 = %, param 2 = %", "2", Integer.valueOf( 3 ) );
log.logFormatted( POILogger.ERROR, "Test param 1 = %, param 2 = %", new int[]{4, 5} );
log.logFormatted( POILogger.ERROR,
"Test param 1 = %1.1, param 2 = %0.1", new double[]{4, 5.23} );