Bläddra i källkod

Revert "Don't allow TextFile to be initialised with null inputs"

This reverts commit c8f4552cb7.

Change-Id: I676f8529ed4f9a245893389e9ac35d58c92a53e5
Reviewed-on: http://gerrit.dmdirc.com/917
Automatic-Compile: Chris Smith <chris@dmdirc.com>
Reviewed-by: Chris Smith <chris@dmdirc.com>
tags/0.6.3^0
Gregory Holmes 14 år sedan
förälder
incheckning
a15db1ca96
1 ändrade filer med 0 tillägg och 8 borttagningar
  1. 0
    8
      src/com/dmdirc/util/TextFile.java

+ 0
- 8
src/com/dmdirc/util/TextFile.java Visa fil

@@ -92,10 +92,6 @@ public class TextFile {
92 92
      * @since 0.6.3m1
93 93
      */
94 94
     public TextFile(final File file, final Charset charset) {
95
-        if (file == null) {
96
-            throw new NullPointerException("file");
97
-        }
98
-
99 95
         this.file = file;
100 96
         this.charset = charset;
101 97
     }
@@ -109,10 +105,6 @@ public class TextFile {
109 105
      * @since 0.6.3m1
110 106
      */
111 107
     public TextFile(final InputStream is, final Charset charset) {
112
-        if (is == null) {
113
-            throw new NullPointerException("is");
114
-        }
115
-
116 108
         this.is = is;
117 109
         this.charset = charset;
118 110
     }

Laddar…
Avbryt
Spara