Quellcode durchsuchen

Minor tidying

Change-Id: If6e8898bb70dfc6390267a8f8066d93bf844dc0a
Reviewed-on: http://gerrit.dmdirc.com/3688
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>
changes/88/3688/2
Chris Smith vor 9 Jahren
Ursprung
Commit
1f46714477

+ 1
- 1
src/com/dmdirc/util/DateUtils.java Datei anzeigen

@@ -77,7 +77,7 @@ public final class DateUtils {
77 77
         seconds -= doDuration(buff, seconds, 60 * 60 * 24, "day");
78 78
         seconds -= doDuration(buff, seconds, 60 * 60, "hour");
79 79
         seconds -= doDuration(buff, seconds, 60, "minute");
80
-        seconds -= doDuration(buff, seconds, 1, "second");
80
+        doDuration(buff, seconds, 1, "second");
81 81
 
82 82
         return buff.length() == 0 ? "0 seconds" : buff.toString();
83 83
     }

+ 3
- 3
src/com/dmdirc/util/io/ReverseFileReader.java Datei anzeigen

@@ -124,13 +124,13 @@ public class ReverseFileReader {
124 124
 
125 125
         final ArrayList<Byte> line = new ArrayList<>(seekLength);
126 126
         // Used to store position in file pre-read
127
-        long fp = 0;
127
+        long fp;
128 128
         // Used to store position in file when this is called
129
-        long startfp = 0;
129
+        long startfp;
130 130
         // Used to store read bytes
131 131
         byte[] bytes;
132 132
         // Distance seeked
133
-        int seekDistance = 0;
133
+        int seekDistance;
134 134
 
135 135
         // Check current position, if 0 we are at the start of the file
136 136
         // and should throw an exception.

Laden…
Abbrechen
Speichern