directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r542691 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/ldif/LdifReader.java
Date Tue, 29 May 2007 23:09:58 GMT
Author: elecharny
Date: Tue May 29 16:09:56 2007
New Revision: 542691

URL: http://svn.apache.org/viewvc?view=rev&rev=542691
Log:
Used generics : added <Entry> after each List, as we are parsing Entries.

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/ldif/LdifReader.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/ldif/LdifReader.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/ldif/LdifReader.java?view=diff&rev=542691&r1=542690&r2=542691
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/ldif/LdifReader.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/ldif/LdifReader.java
Tue May 29 16:09:56 2007
@@ -1496,7 +1496,7 @@
      * @throws NamingException
      *             If the parsing fails
      */
-    public List parseLdifFile( String fileName ) throws NamingException
+    public List<Entry> parseLdifFile( String fileName ) throws NamingException
     {
         return parseLdifFile( fileName, Charset.forName( StringTools.getDefaultCharsetName()
).toString() );
     }
@@ -1512,7 +1512,7 @@
      * @throws NamingException
      *             If the parsing fails
      */
-    public List parseLdifFile( String fileName, String encoding ) throws NamingException
+    public List<Entry> parseLdifFile( String fileName, String encoding ) throws NamingException
     {
         if ( StringTools.isEmpty( fileName ) )
         {
@@ -1553,13 +1553,13 @@
      * @throws NamingException
      *             If something went wrong
      */
-    public List parseLdif( String ldif ) throws NamingException
+    public List<Entry> parseLdif( String ldif ) throws NamingException
     {
         log.debug( "Starts parsing ldif buffer" );
 
         if ( StringTools.isEmpty( ldif ) )
         {
-            return new ArrayList();
+            return new ArrayList<Entry>();
         }
 
         StringReader strIn = new StringReader( ldif );
@@ -1567,7 +1567,7 @@
 
         try
         {
-            List entries = parseLdif( inf );
+            List<Entry> entries = parseLdif( inf );
 
             if ( log.isDebugEnabled() )
             {



Mime
View raw message