directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1771550 - /directory/shared/branches/shared-value/ldap/codec/standalone/src/main/java/org/apache/directory/api/ldap/codec/standalone/StandaloneLdapApiService.java
Date Sun, 27 Nov 2016 09:26:56 GMT
Author: elecharny
Date: Sun Nov 27 09:26:56 2016
New Revision: 1771550

URL: http://svn.apache.org/viewvc?rev=1771550&view=rev
Log:
Fixed Sonarlint warnings

Modified:
    directory/shared/branches/shared-value/ldap/codec/standalone/src/main/java/org/apache/directory/api/ldap/codec/standalone/StandaloneLdapApiService.java

Modified: directory/shared/branches/shared-value/ldap/codec/standalone/src/main/java/org/apache/directory/api/ldap/codec/standalone/StandaloneLdapApiService.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-value/ldap/codec/standalone/src/main/java/org/apache/directory/api/ldap/codec/standalone/StandaloneLdapApiService.java?rev=1771550&r1=1771549&r2=1771550&view=diff
==============================================================================
--- directory/shared/branches/shared-value/ldap/codec/standalone/src/main/java/org/apache/directory/api/ldap/codec/standalone/StandaloneLdapApiService.java
(original)
+++ directory/shared/branches/shared-value/ldap/codec/standalone/src/main/java/org/apache/directory/api/ldap/codec/standalone/StandaloneLdapApiService.java
Sun Nov 27 09:26:56 2016
@@ -198,7 +198,7 @@ public class StandaloneLdapApiService ex
      */
     private static List<String> getControlsFromSystemProperties() throws Exception
     {
-        List<String> controlsList = new ArrayList<String>();
+        List<String> controlsList = new ArrayList<>();
 
         // Loading controls list from command line properties if it exists
         String controlsString = System.getProperty( CONTROLS_LIST );
@@ -235,7 +235,7 @@ public class StandaloneLdapApiService ex
      */
     private static List<String> getExtendedOperationsFromSystemProperties() throws
Exception
     {
-        List<String> extendedOperationsList = new ArrayList<String>();
+        List<String> extendedOperationsList = new ArrayList<>();
 
         // Loading extended operations from command line properties if it exists
         String defaultExtendedOperationsList = System.getProperty( EXTENDED_OPERATIONS_LIST
);
@@ -271,7 +271,7 @@ public class StandaloneLdapApiService ex
     private void loadControls( List<String> controlsList ) throws Exception
     {
         // Adding all controls
-        if ( controlsList.size() > 0 )
+        if ( !controlsList.isEmpty() )
         {
             for ( String controlFQCN : controlsList )
             {
@@ -315,7 +315,7 @@ public class StandaloneLdapApiService ex
     private void loadExtendedOperations( List<String> extendedOperationsList ) throws
Exception
     {
         // Adding all extended operations
-        if ( extendedOperationsList.size() > 0 )
+        if ( !extendedOperationsList.isEmpty() )
         {
             for ( String extendedOperationFQCN : extendedOperationsList )
             {



Mime
View raw message