Bladeren bron

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 9 jaren geleden
bovenliggende
commit
1f46714477
2 gewijzigde bestanden met toevoegingen van 4 en 4 verwijderingen
  1. 1
    1
      src/com/dmdirc/util/DateUtils.java
  2. 3
    3
      src/com/dmdirc/util/io/ReverseFileReader.java

+ 1
- 1
src/com/dmdirc/util/DateUtils.java Bestand weergeven

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

+ 3
- 3
src/com/dmdirc/util/io/ReverseFileReader.java Bestand weergeven

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

Laden…
Annuleren
Opslaan