提交 fb83e7dc authored 作者: Thomas Mueller's avatar Thomas Mueller

Java 6

上级 8da3a9ed
...@@ -121,7 +121,7 @@ public class CreateScriptFile { ...@@ -121,7 +121,7 @@ public class CreateScriptFile {
} }
return new PrintWriter(new OutputStreamWriter(out, charset)); return new PrintWriter(new OutputStreamWriter(out, charset));
} catch (Exception e) { } catch (Exception e) {
throw (IOException) new IOException(e.getMessage()).initCause(e); throw new IOException(e.getMessage(), e);
} }
} }
...@@ -157,7 +157,7 @@ public class CreateScriptFile { ...@@ -157,7 +157,7 @@ public class CreateScriptFile {
} }
return new LineNumberReader(new InputStreamReader(in, charset)); return new LineNumberReader(new InputStreamReader(in, charset));
} catch (Exception e) { } catch (Exception e) {
throw (IOException) new IOException(e.getMessage()).initCause(e); throw new IOException(e.getMessage(), e);
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论