提交 fef7a00e authored 作者: noelgrandin's avatar noelgrandin

field name potentially hides same field in outer scope

上级 9b4dbc17
...@@ -92,12 +92,12 @@ public class OutputCatcher { ...@@ -92,12 +92,12 @@ public class OutputCatcher {
*/ */
final PrintStream print; final PrintStream print;
private final HtmlOutputStream out; private final HtmlOutputStream htmlOut;
private final boolean error; private final boolean error;
DualOutputStream(HtmlOutputStream out, PrintStream print, boolean error) { DualOutputStream(HtmlOutputStream out, PrintStream print, boolean error) {
super(out); super(out);
this.out = out; this.htmlOut = out;
this.print = print; this.print = print;
this.error = error; this.error = error;
} }
...@@ -114,7 +114,7 @@ public class OutputCatcher { ...@@ -114,7 +114,7 @@ public class OutputCatcher {
public void write(int b) throws IOException { public void write(int b) throws IOException {
print.write(b); print.write(b);
out.write(error, b); htmlOut.write(error, b);
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论