don't use concatenation in logger, fix other small code style issues

This commit is contained in:
Skylot
2015-02-07 17:55:57 +03:00
parent 141398aeac
commit 99d9814083
16 changed files with 29 additions and 27 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ public class JadxGUI {
}
});
} catch (Throwable e) {
LOG.error("Error: " + e.getMessage());
LOG.error("Error: {}", e.getMessage());
System.exit(1);
}
}
@@ -31,9 +31,9 @@ public class JadxWrapper {
try {
this.decompiler.loadFile(file);
} catch (DecodeException e) {
LOG.error("Error decode file: " + file, e);
LOG.error("Error decode file: {}", file, e);
} catch (JadxException e) {
LOG.error("Error open file: " + file, e);
LOG.error("Error open file: {}", file, e);
}
}
@@ -150,7 +150,7 @@ class ContentArea extends RSyntaxTextArea {
try {
setCaretPosition(getLineStartOffset(line));
} catch (BadLocationException e) {
LOG.debug("Can't scroll to " + line, e);
LOG.debug("Can't scroll to {}", line, e);
}
}
@@ -26,7 +26,7 @@ import org.slf4j.LoggerFactory;
class SearchBar extends JToolBar {
private static final long serialVersionUID = 1836871286618633003L;
private static final Logger LOG = LoggerFactory.getLogger(SearchDialog.class);
private static final Logger LOG = LoggerFactory.getLogger(SearchBar.class);
private static final Color COLOR_BG_ERROR = new Color(0xFFDFDE);
private static final Color COLOR_BG_WARN = new Color(0xFFFDD9);
@@ -20,7 +20,7 @@ import static java.awt.Desktop.Action;
public class Link extends JLabel implements MouseListener {
private static final long serialVersionUID = 3655322136444908178L;
private static final Logger LOG = LoggerFactory.getLogger(JLabel.class);
private static final Logger LOG = LoggerFactory.getLogger(Link.class);
private String url;