Sfoglia il codice sorgente

Tidying

Change-Id: Ib6f8bf58d07d0c23369b41e8eda94ac4a36774b7
Reviewed-on: http://gerrit.dmdirc.com/3802
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
changes/02/3802/2
Chris Smith 9 anni fa
parent
commit
4edb6a6996

+ 1
- 1
src/com/dmdirc/util/collections/ObservableListDecorator.java Vedi File

94
 
94
 
95
     /** {@inheritDoc} */
95
     /** {@inheritDoc} */
96
     @Override
96
     @Override
97
-    public <T> T[] toArray(final T[] a) {
97
+    public <S> S[] toArray(final S[] a) {
98
         return list.toArray(a);
98
         return list.toArray(a);
99
     }
99
     }
100
 
100
 

+ 3
- 4
src/com/dmdirc/util/io/ReverseFileReader.java Vedi File

24
 
24
 
25
 import java.io.EOFException;
25
 import java.io.EOFException;
26
 import java.io.File;
26
 import java.io.File;
27
-import java.io.FileNotFoundException;
28
 import java.io.IOException;
27
 import java.io.IOException;
29
 import java.io.RandomAccessFile;
28
 import java.io.RandomAccessFile;
30
 import java.nio.charset.Charset;
29
 import java.nio.charset.Charset;
139
             throw new EOFException("Reached Start of file");
138
             throw new EOFException("Reached Start of file");
140
         }
139
         }
141
 
140
 
142
-        // Keep looping untill we get a full line, or the end of the file
141
+        // Keep looping until we get a full line, or the end of the file
143
         boolean keepLooping = true;
142
         boolean keepLooping = true;
144
         boolean gotNewLine;
143
         boolean gotNewLine;
145
         while (keepLooping) {
144
         while (keepLooping) {
167
             // And loop looking for data
166
             // And loop looking for data
168
             // This uses seekDistance so that only wanted data is checked.
167
             // This uses seekDistance so that only wanted data is checked.
169
             for (int i = seekDistance - 1; i >= 0; --i) {
168
             for (int i = seekDistance - 1; i >= 0; --i) {
170
-                // Check for New line Character, or a non carraige-return char
169
+                // Check for New line Character, or a non carriage-return char
171
                 if (bytes[i] == '\n') {
170
                 if (bytes[i] == '\n') {
172
                     // Seek to the location of this character and exit this loop.
171
                     // Seek to the location of this character and exit this loop.
173
                     file.seek(fp + i);
172
                     file.seek(fp + i);
184
 
183
 
185
             if (fp == 0 && !gotNewLine) {
184
             if (fp == 0 && !gotNewLine) {
186
                 // This part of the loop started from the start of the file, but didn't
185
                 // This part of the loop started from the start of the file, but didn't
187
-                // find a new line anywhere. no more loops are posssible, so Treat
186
+                // find a new line anywhere. no more loops are possible, so Treat
188
                 // this as "got new line"
187
                 // this as "got new line"
189
                 gotNewLine = true;
188
                 gotNewLine = true;
190
                 file.seek(0);
189
                 file.seek(0);

+ 1
- 0
src/com/dmdirc/util/validators/RegexValidator.java Vedi File

34
             // Is there a proper way of doing this, as opposed to just seeing
34
             // Is there a proper way of doing this, as opposed to just seeing
35
             // if it breaks?
35
             // if it breaks?
36
 
36
 
37
+            //noinspection ResultOfMethodCallIgnored
37
             "abc".matches(object);
38
             "abc".matches(object);
38
             return new ValidationResponse();
39
             return new ValidationResponse();
39
         } catch (Exception ex) {
40
         } catch (Exception ex) {

Loading…
Annulla
Salva