/[debian]/jabref/trunk/debian/patches/05_PrintStream_File.dpatch
ViewVC logotype

Diff of /jabref/trunk/debian/patches/05_PrintStream_File.dpatch

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1239 by gregoa, Sun Mar 16 16:15:50 2008 UTC revision 1240 by gregoa, Tue Mar 18 02:28:51 2008 UTC
# Line 8  Line 8 
8  @DPATCH@  @DPATCH@
9  diff -urNad jabref~/src/java/net/sf/jabref/sql/SQLutil.java jabref/src/java/net/sf/jabref/sql/SQLutil.java  diff -urNad jabref~/src/java/net/sf/jabref/sql/SQLutil.java jabref/src/java/net/sf/jabref/sql/SQLutil.java
10  --- jabref~/src/java/net/sf/jabref/sql/SQLutil.java     2008-03-16 17:01:04.000000000 +0100  --- jabref~/src/java/net/sf/jabref/sql/SQLutil.java     2008-03-16 17:01:04.000000000 +0100
11  +++ jabref/src/java/net/sf/jabref/sql/SQLutil.java      2008-03-16 17:03:07.000000000 +0100  +++ jabref/src/java/net/sf/jabref/sql/SQLutil.java      2008-03-18 03:26:59.000000000 +0100
12  @@ -11,6 +11,8 @@  @@ -11,6 +11,8 @@
13    
14   import java.io.File;   import java.io.File;
# Line 18  diff -urNad jabref~/src/java/net/sf/jabr Line 18  diff -urNad jabref~/src/java/net/sf/jabr
18   import java.sql.Connection;   import java.sql.Connection;
19   import java.sql.DriverManager;   import java.sql.DriverManager;
20   import java.sql.SQLException;   import java.sql.SQLException;
21  @@ -261,8 +263,10 @@  @@ -261,8 +263,9 @@
22           if (outfile.exists())           if (outfile.exists())
23               outfile.delete();               outfile.delete();
24    
25  +        BufferedOutputStream writer = null;  +        BufferedOutputStream writer = new BufferedOutputStream( new FileOutputStream( outfile ) );
 +        writer = new BufferedOutputStream( new FileOutputStream( outfile ) );  
26           PrintStream fout = null;           PrintStream fout = null;
27  -        fout = new PrintStream(outfile);  -        fout = new PrintStream(outfile);
28  +        fout = new PrintStream( writer );  +        fout = new PrintStream( writer );

Legend:
Removed from v.1239  
changed lines
  Added in v.1240

  ViewVC Help
Powered by ViewVC 1.1.26