aboutsummaryrefslogtreecommitdiffstats
path: root/cgeo-calendar/src/cgeo/calendar/CalendarEntry.java
diff options
context:
space:
mode:
Diffstat (limited to 'cgeo-calendar/src/cgeo/calendar/CalendarEntry.java')
-rw-r--r--cgeo-calendar/src/cgeo/calendar/CalendarEntry.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/cgeo-calendar/src/cgeo/calendar/CalendarEntry.java b/cgeo-calendar/src/cgeo/calendar/CalendarEntry.java
index 3e4de73..e31e054 100644
--- a/cgeo-calendar/src/cgeo/calendar/CalendarEntry.java
+++ b/cgeo-calendar/src/cgeo/calendar/CalendarEntry.java
@@ -2,6 +2,8 @@ package cgeo.calendar;
import cgeo.geocaching.utils.Log;
+import org.apache.commons.lang3.CharEncoding;
+
import android.net.Uri;
import android.text.Html;
import android.text.Spanned;
@@ -48,7 +50,7 @@ class CalendarEntry {
if (param == null) {
return "";
}
- return URLDecoder.decode(param, "UTF-8").trim();
+ return URLDecoder.decode(param, CharEncoding.UTF_8).trim();
} catch (UnsupportedEncodingException e) {
Log.e("CalendarEntry.getParameter", e);
}
@@ -56,7 +58,7 @@ class CalendarEntry {
}
public boolean isValid() {
- return (getName().length() > 0 && getHiddenDate().length() > 0);
+ return getName().length() > 0 && getHiddenDate().length() > 0;
}
public String getHiddenDate() {