Browse Source

jfinal 3.6

James 7 years ago
parent
commit
82f5855cd4

+ 1 - 9
src/main/java/com/jfinal/template/io/ByteWriter.java

@@ -46,15 +46,7 @@ public class ByteWriter extends Writer {
 	}
 	}
 	
 	
 	public void close() {
 	public void close() {
-		try {
-			if (out != null) {
-				out.flush();
-			}
-		} catch (IOException e) {
-			throw new RuntimeException(e);
-		} finally {
-			out = null;
-		}
+		out = null;
 	}
 	}
 	
 	
 	public void write(String str, int offset, int len) throws IOException {
 	public void write(String str, int offset, int len) throws IOException {

+ 1 - 9
src/main/java/com/jfinal/template/io/CharWriter.java

@@ -40,15 +40,7 @@ public class CharWriter extends Writer {
 	}
 	}
 	
 	
 	public void close() {
 	public void close() {
-		try {
-			if (out != null) {
-				out.flush();
-			}
-		} catch (IOException e) {
-			throw new RuntimeException(e);
-		} finally {
-			out = null;
-		}
+		out = null;
 	}
 	}
 	
 	
 	public void write(String str, int offset, int len) throws IOException {
 	public void write(String str, int offset, int len) throws IOException {