diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2013-08-26 23:23:40 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2013-08-26 23:23:40 +0200 |
| commit | 27bf401560f9723297bd654b90929600dc9bc927 (patch) | |
| tree | 39e791961bc63a5006966f993308e57e70ffdce5 /main/src/cgeo | |
| parent | 7d6b25acf510e7435e40664e2f3ee5ecbc6035d2 (diff) | |
| download | cgeo-27bf401560f9723297bd654b90929600dc9bc927.zip cgeo-27bf401560f9723297bd654b90929600dc9bc927.tar.gz cgeo-27bf401560f9723297bd654b90929600dc9bc927.tar.bz2 | |
refactoring: assertions
Diffstat (limited to 'main/src/cgeo')
| -rw-r--r-- | main/src/cgeo/geocaching/LogCacheActivity.java | 2 | ||||
| -rw-r--r-- | main/src/cgeo/geocaching/LogEntry.java | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/main/src/cgeo/geocaching/LogCacheActivity.java b/main/src/cgeo/geocaching/LogCacheActivity.java index 3ed77e2..c9baac1 100644 --- a/main/src/cgeo/geocaching/LogCacheActivity.java +++ b/main/src/cgeo/geocaching/LogCacheActivity.java @@ -539,7 +539,7 @@ public class LogCacheActivity extends AbstractLoggingActivity implements DateDia final LogResult logResult = loggingManager.postLog(cache, typeSelected, date, log, logPwd, trackables); if (logResult.getPostLogResult() == StatusCode.NO_ERROR) { - final LogEntry logNow = new LogEntry(date, typeSelected, log); + final LogEntry logNow = new LogEntry(date.getTimeInMillis(), typeSelected, log); cache.getLogs().add(0, logNow); diff --git a/main/src/cgeo/geocaching/LogEntry.java b/main/src/cgeo/geocaching/LogEntry.java index 0121424..a01c431 100644 --- a/main/src/cgeo/geocaching/LogEntry.java +++ b/main/src/cgeo/geocaching/LogEntry.java @@ -9,7 +9,6 @@ import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang3.StringUtils; import java.util.ArrayList; -import java.util.Calendar; import java.util.Collections; import java.util.List; import java.util.regex.Pattern; @@ -30,10 +29,6 @@ public final class LogEntry { public String cacheName = ""; // used for trackables public String cacheGuid = ""; // used for trackables - public LogEntry(final Calendar date, final LogType type, final String text) { - this(Settings.getUsername(), date.getTimeInMillis(), type, text); - } - public LogEntry(final long dateInMilliSeconds, final LogType type, final String text) { this(Settings.getUsername(), dateInMilliSeconds, type, text); } |
