directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [directory-ldap-api] branch master updated: Avoid unnecessary autoboxing
Date Mon, 04 Nov 2019 10:43:25 GMT
This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-ldap-api.git


The following commit(s) were added to refs/heads/master by this push:
     new 319f22b  Avoid unnecessary autoboxing
319f22b is described below

commit 319f22b4b0f0ef5440294349a711a15bd946534a
Author: Colm O hEigeartaigh <coheigea@apache.org>
AuthorDate: Mon Nov 4 10:43:04 2019 +0000

    Avoid unnecessary autoboxing
---
 .../src/main/java/org/apache/directory/api/ldap/model/csn/Csn.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ldap/model/src/main/java/org/apache/directory/api/ldap/model/csn/Csn.java b/ldap/model/src/main/java/org/apache/directory/api/ldap/model/csn/Csn.java
index 7838de8..15522a1 100644
--- a/ldap/model/src/main/java/org/apache/directory/api/ldap/model/csn/Csn.java
+++ b/ldap/model/src/main/java/org/apache/directory/api/ldap/model/csn/Csn.java
@@ -181,7 +181,7 @@ public class Csn implements Comparable<Csn>
         // And add the milliseconds and microseconds now
         try
         {
-            millis = Integer.valueOf( timestampStr.substring( 15, 21 ) );
+            millis = Integer.parseInt( timestampStr.substring( 15, 21 ) );
         }
         catch ( NumberFormatException nfe )
         {


Mime
View raw message