Procházet zdrojové kódy

Don't string format when we don't need to.

pull/162/head
Shane Mc Cormack před 5 roky
rodič
revize
1f76e015c1

+ 1
- 1
irc/src/main/java/com/dmdirc/parser/irc/IRCParser.java Zobrazit soubor

@@ -585,7 +585,7 @@ public class IRCParser extends BaseSocketAwareParser implements SecureParser, En
585 585
      * @param args Formatting String Options
586 586
      */
587 587
     public void callDebugInfo(final int level, final String data, final Object... args) {
588
-        callDebugInfo(level, String.format(data, args));
588
+        callDebugInfo(level, args == null || args.length == 0 ? data : String.format(data, args));
589 589
     }
590 590
 
591 591
     /**

Načítá se…
Zrušit
Uložit