directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1794582 - in /directory/studio/trunk/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards: ExportModificationLogsWizard.java ExportSearchLogsWizard.java
Date Tue, 09 May 2017 13:48:04 GMT
Author: seelmann
Date: Tue May  9 13:48:04 2017
New Revision: 1794582

URL: http://svn.apache.org/viewvc?rev=1794582&view=rev
Log:
Fix compilation error, FileUtils now returns OutputStream only.

Modified:
    directory/studio/trunk/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/ExportModificationLogsWizard.java
    directory/studio/trunk/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/ExportSearchLogsWizard.java

Modified: directory/studio/trunk/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/ExportModificationLogsWizard.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/ExportModificationLogsWizard.java?rev=1794582&r1=1794581&r2=1794582&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/ExportModificationLogsWizard.java
(original)
+++ directory/studio/trunk/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/ExportModificationLogsWizard.java
Tue May  9 13:48:04 2017
@@ -25,6 +25,8 @@ import java.io.File;
 import java.io.FileInputStream;
 import java.io.FileOutputStream;
 import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
 
 import org.apache.directory.api.util.FileUtils;
 import org.apache.directory.api.util.IOUtils;
@@ -79,7 +81,7 @@ public class ExportModificationLogsWizar
             try
             {
                 File targetFile = new File( exportFilename );
-                FileOutputStream os = FileUtils.openOutputStream( targetFile );
+                OutputStream os = FileUtils.openOutputStream( targetFile );
 
                 LdifModificationLogger modificationLogger = ConnectionCorePlugin.getDefault()
                     .getLdifModificationLogger();
@@ -90,7 +92,7 @@ public class ExportModificationLogsWizar
                     File file = files[i];
                     if ( file != null && file.exists() && file.canRead()
)
                     {
-                        FileInputStream is = FileUtils.openInputStream( file );
+                        InputStream is = FileUtils.openInputStream( file );
                         IOUtils.copy( is, os );
                         is.close();
                     }

Modified: directory/studio/trunk/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/ExportSearchLogsWizard.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/ExportSearchLogsWizard.java?rev=1794582&r1=1794581&r2=1794582&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/ExportSearchLogsWizard.java
(original)
+++ directory/studio/trunk/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/ExportSearchLogsWizard.java
Tue May  9 13:48:04 2017
@@ -25,6 +25,8 @@ import java.io.File;
 import java.io.FileInputStream;
 import java.io.FileOutputStream;
 import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
 
 import org.apache.directory.api.util.FileUtils;
 import org.apache.directory.api.util.IOUtils;
@@ -79,7 +81,7 @@ public class ExportSearchLogsWizard exte
             try
             {
                 File targetFile = new File( exportFilename );
-                FileOutputStream os = FileUtils.openOutputStream( targetFile );
+                OutputStream os = FileUtils.openOutputStream( targetFile );
 
                 LdifSearchLogger searchLogger = ConnectionCorePlugin.getDefault().getLdifSearchLogger();
                 File[] files = searchLogger.getFiles( search.getBrowserConnection().getConnection()
);
@@ -89,7 +91,7 @@ public class ExportSearchLogsWizard exte
                     File file = files[i];
                     if ( file != null && file.exists() && file.canRead()
)
                     {
-                        FileInputStream is = FileUtils.openInputStream( file );
+                        InputStream is = FileUtils.openInputStream( file );
                         IOUtils.copy( is, os );
                         is.close();
                     }



Mime
View raw message