Commit 6a8a04e
committed
Use try-with-resources for EncodingTester
This change wraps the `new HtmlInputStreamReader` call in a
try-with-resources construct, to ensure the HtmlInputStreamReader
instance gets automatically closed.
Without this change, Eclipse and other IDEs complain about the
HtmlInputStreamReader instance never getting closed.1 parent 92c1ce8 commit 6a8a04e
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
| 72 | + | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
0 commit comments