diff options
| author | Michael Keppler <bananeweizen@gmx.de> | 2013-12-25 08:05:42 +0100 |
|---|---|---|
| committer | Michael Keppler <bananeweizen@gmx.de> | 2013-12-25 08:05:42 +0100 |
| commit | 7cdf30c21ad29c0b51e3a2e44f86932e981817a0 (patch) | |
| tree | 0d37117c091bd02350104790ecdbccffe4f0d18c /main/src/cgeo/geocaching/ui/AbstractCachingPageViewCreator.java | |
| parent | 78346dc4d407493b659d0076bfb66ba540a9002f (diff) | |
| download | cgeo-7cdf30c21ad29c0b51e3a2e44f86932e981817a0.zip cgeo-7cdf30c21ad29c0b51e3a2e44f86932e981817a0.tar.gz cgeo-7cdf30c21ad29c0b51e3a2e44f86932e981817a0.tar.bz2 | |
fix #3471: avoid null being possible in the interface
This change also prohibits the same error to occur again in another
implementation of the same interface and should therefore be preferred
to just checking for null in the current interface implementation.
Diffstat (limited to 'main/src/cgeo/geocaching/ui/AbstractCachingPageViewCreator.java')
| -rw-r--r-- | main/src/cgeo/geocaching/ui/AbstractCachingPageViewCreator.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/ui/AbstractCachingPageViewCreator.java b/main/src/cgeo/geocaching/ui/AbstractCachingPageViewCreator.java index 568119e..9d87f2b 100644 --- a/main/src/cgeo/geocaching/ui/AbstractCachingPageViewCreator.java +++ b/main/src/cgeo/geocaching/ui/AbstractCachingPageViewCreator.java @@ -4,6 +4,8 @@ import cgeo.geocaching.activity.AbstractViewPagerActivity.PageViewCreator; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; +import org.eclipse.jdt.annotation.NonNull; + import android.os.Bundle; import android.view.View; @@ -48,7 +50,7 @@ public abstract class AbstractCachingPageViewCreator<ViewClass extends View> imp * Restores the state of the view but just returns if not overridden. */ @Override - public void setViewState(Bundle state) { + public void setViewState(@NonNull Bundle state) { return; } } |
