make 05_PrintStream_File.dpatch more compact
authorgregor herrmann <gregoa@debian.org>
Tue, 18 Mar 2008 02:28:51 +0000 (02:28 -0000)
committergregor herrmann <gregoa@debian.org>
Tue, 18 Mar 2008 02:28:51 +0000 (02:28 -0000)
debian/patches/05_PrintStream_File.dpatch

index 4ddf1b5c31a2ad02797f7183a3bd83140f557a1c..793a7f3e2a058b39343b8b2043ce8d3a6d7ca65d 100755 (executable)
@@ -8,7 +8,7 @@
 @DPATCH@
 diff -urNad jabref~/src/java/net/sf/jabref/sql/SQLutil.java jabref/src/java/net/sf/jabref/sql/SQLutil.java
 --- 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:03:07.000000000 +0100
++++ jabref/src/java/net/sf/jabref/sql/SQLutil.java     2008-03-18 03:26:59.000000000 +0100
 @@ -11,6 +11,8 @@
  
  import java.io.File;
@@ -18,12 +18,11 @@ diff -urNad jabref~/src/java/net/sf/jabref/sql/SQLutil.java jabref/src/java/net/
  import java.sql.Connection;
  import java.sql.DriverManager;
  import java.sql.SQLException;
-@@ -261,8 +263,10 @@
+@@ -261,8 +263,9 @@
          if (outfile.exists())
              outfile.delete();
  
-+        BufferedOutputStream writer = null;
-+        writer = new BufferedOutputStream( new FileOutputStream( outfile ) );
++        BufferedOutputStream writer = new BufferedOutputStream( new FileOutputStream( outfile ) );
          PrintStream fout = null;
 -        fout = new PrintStream(outfile);
 +        fout = new PrintStream( writer );