Bladeren bron

Tidying.

Remove pointless super() calls.
Remove redundant interface decs.
Remove unnecessary enum annotations.
Change .length == 0 to .isEmpty.

Change-Id: I80c52ef8c39d9fc45038921285dd85bba6b397d4
Reviewed-on: http://gerrit.dmdirc.com/3843
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>
changes/43/3843/2
Chris Smith 9 jaren geleden
bovenliggende
commit
7ba58d10ca

+ 2
- 2
src/com/dmdirc/util/io/Downloader.java Bestand weergeven

@@ -176,10 +176,10 @@ public class Downloader {
176 176
 
177 177
         urlConn.setUseCaches(false);
178 178
         urlConn.setDoInput(true);
179
-        urlConn.setDoOutput(postData.length() > 0);
179
+        urlConn.setDoOutput(!postData.isEmpty());
180 180
         urlConn.setConnectTimeout(10000);
181 181
 
182
-        if (postData.length() > 0) {
182
+        if (!postData.isEmpty()) {
183 183
             urlConn.setRequestProperty("Content-Type",
184 184
                     "application/x-www-form-urlencoded");
185 185
 

+ 0
- 1
src/com/dmdirc/util/io/StreamUtils.java Bestand weergeven

@@ -35,7 +35,6 @@ public final class StreamUtils {
35 35
 
36 36
     /** Shouldn't be called. */
37 37
     private StreamUtils() {
38
-        super();
39 38
     }
40 39
 
41 40
     /**

+ 1
- 2
src/com/dmdirc/util/validators/ColourValidator.java Bestand weergeven

@@ -27,8 +27,7 @@ package com.dmdirc.util.validators;
27 27
  *
28 28
  * @since 0.6.5
29 29
  */
30
-public class ColourValidator extends RegexStringValidator implements
31
-        Validator<String> {
30
+public class ColourValidator extends RegexStringValidator {
32 31
 
33 32
     /**
34 33
      * Creates a new colour validator.

Laden…
Annuleren
Opslaan