aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/LogEntry.java
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2013-07-19 22:52:24 +0200
committerBananeweizen <bananeweizen@gmx.de>2013-07-19 22:52:24 +0200
commitf7e98eb38e2f65e779fa674d8ece946e8b4c47be (patch)
treee71b31f52af3ae7cffc09d5b7531af120b0c1b06 /main/src/cgeo/geocaching/LogEntry.java
parentfe5cee35dee69baed38cd1d176805914db23083f (diff)
downloadcgeo-f7e98eb38e2f65e779fa674d8ece946e8b4c47be.zip
cgeo-f7e98eb38e2f65e779fa674d8ece946e8b4c47be.tar.gz
cgeo-f7e98eb38e2f65e779fa674d8ece946e8b4c47be.tar.bz2
refactoring: extract level of static maps to constant
* includes further checkstyle cleanup
Diffstat (limited to 'main/src/cgeo/geocaching/LogEntry.java')
-rw-r--r--main/src/cgeo/geocaching/LogEntry.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/LogEntry.java b/main/src/cgeo/geocaching/LogEntry.java
index 790becd..0121424 100644
--- a/main/src/cgeo/geocaching/LogEntry.java
+++ b/main/src/cgeo/geocaching/LogEntry.java
@@ -38,7 +38,7 @@ public final class LogEntry {
this(Settings.getUsername(), dateInMilliSeconds, type, text);
}
- public LogEntry(final String author, long dateInMilliSeconds, final LogType type, final String text) {
+ public LogEntry(final String author, final long dateInMilliSeconds, final LogType type, final String text) {
this.author = author;
this.date = dateInMilliSeconds;
this.type = type;
@@ -51,7 +51,7 @@ public final class LogEntry {
}
@Override
- public boolean equals(Object obj) {
+ public boolean equals(final Object obj) {
if (this == obj) {
return true;
}
@@ -109,7 +109,7 @@ public final class LogEntry {
public String getDisplayText() {
if (Settings.getPlainLogs()) {
MatcherWrapper matcher = new MatcherWrapper(PATTERN_REMOVE_COLORS, log);
- return matcher.replaceAll("");
+ return matcher.replaceAll(StringUtils.EMPTY);
}
return log;
}