diff options
Diffstat (limited to 'cgeo-calendar/src/cgeo/calendar/AbstractAddEntry.java')
-rw-r--r-- | cgeo-calendar/src/cgeo/calendar/AbstractAddEntry.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/cgeo-calendar/src/cgeo/calendar/AbstractAddEntry.java b/cgeo-calendar/src/cgeo/calendar/AbstractAddEntry.java index 31e2bd9..e35ed19 100644 --- a/cgeo-calendar/src/cgeo/calendar/AbstractAddEntry.java +++ b/cgeo-calendar/src/cgeo/calendar/AbstractAddEntry.java @@ -1,13 +1,17 @@ package cgeo.calendar; +import org.eclipse.jdt.annotation.NonNull; + import android.util.Log; abstract class AbstractAddEntry { - protected CalendarEntry entry; - protected CalendarActivity activity; + @NonNull + protected final CalendarEntry entry; + @NonNull + protected final CalendarActivity activity; - public AbstractAddEntry(final CalendarEntry entry, CalendarActivity activity) { + public AbstractAddEntry(@NonNull final CalendarEntry entry, @NonNull final CalendarActivity activity) { this.entry = entry; this.activity = activity; } @@ -16,7 +20,7 @@ abstract class AbstractAddEntry { try { addEntryToCalendarInternal(); activity.showToast(R.string.event_success); - } catch (Exception e) { + } catch (final Exception e) { activity.showToast(R.string.event_fail); Log.e(CalendarActivity.LOG_TAG, "addToCalendar", e); |