Browse Source

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 years ago
parent
commit
a15db1ca96
1 changed files with 0 additions and 8 deletions
  1. 0
    8
      src/com/dmdirc/util/TextFile.java

+ 0
- 8
src/com/dmdirc/util/TextFile.java View File

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

Loading…
Cancel
Save