Merge branch 'master' into next
[Sone.git] / src / main / java / net / pterodactylus / sone / text / SoneTextParser.java
index 5c12831..dd0da28 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Sone - FreenetLinkParser.java - Copyright © 2010 David Roden
+ * Sone - FreenetLinkParser.java - Copyright © 2010–2012 David Roden
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -237,8 +237,8 @@ public class SoneTextParser implements Parser<SoneTextParserContext> {
                                int nextSpace = matcher.find(0) ? matcher.start() : line.length();
                                String link = line.substring(0, nextSpace);
                                String name = link;
-                               logger.log(Level.FINER, "Found link: %s", link);
-                               logger.log(Level.FINEST, "CHK: %d, SSK: %d, USK: %d", new Object[] { nextChk, nextSsk, nextUsk });
+                               logger.log(Level.FINER, String.format("Found link: %s", link));
+                               logger.log(Level.FINEST, String.format("CHK: %d, SSK: %d, USK: %d", nextChk, nextSsk, nextUsk));
 
                                if ((linkType == LinkType.KSK) || (linkType == LinkType.CHK) || (linkType == LinkType.SSK) || (linkType == LinkType.USK)) {
                                        FreenetURI uri;