diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2015-03-17 08:37:59 +0100 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2015-03-17 08:41:06 +0100 |
commit | b2ffc2581c6630e313c4e623d0a40c8846e1e975 (patch) | |
tree | 6859e456fdb42e6468558883761c1de40b458c80 /main/src/cgeo/geocaching/ui/CoordinatesFormatSwitcher.java | |
parent | 9119639276a00ef17d3ffa1a5fad0c37c1bebd78 (diff) | |
download | cgeo-b2ffc2581c6630e313c4e623d0a40c8846e1e975.zip cgeo-b2ffc2581c6630e313c4e623d0a40c8846e1e975.tar.gz cgeo-b2ffc2581c6630e313c4e623d0a40c8846e1e975.tar.bz2 |
Add missing final qualifiers in main module
Diffstat (limited to 'main/src/cgeo/geocaching/ui/CoordinatesFormatSwitcher.java')
-rw-r--r-- | main/src/cgeo/geocaching/ui/CoordinatesFormatSwitcher.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/ui/CoordinatesFormatSwitcher.java b/main/src/cgeo/geocaching/ui/CoordinatesFormatSwitcher.java index 581942a..db299a2 100644 --- a/main/src/cgeo/geocaching/ui/CoordinatesFormatSwitcher.java +++ b/main/src/cgeo/geocaching/ui/CoordinatesFormatSwitcher.java @@ -13,7 +13,7 @@ import android.widget.TextView; */ public class CoordinatesFormatSwitcher implements OnClickListener { - private static GeopointFormatter.Format[] availableFormats = new GeopointFormatter.Format[] { + private static final GeopointFormatter.Format[] availableFormats = new GeopointFormatter.Format[] { GeopointFormatter.Format.LAT_LON_DECMINUTE, GeopointFormatter.Format.LAT_LON_DECSECOND, GeopointFormatter.Format.LAT_LON_DECDEGREE @@ -28,10 +28,10 @@ public class CoordinatesFormatSwitcher implements OnClickListener { } @Override - public void onClick(View view) { + public void onClick(final View view) { assert view instanceof TextView; position = (position + 1) % availableFormats.length; - TextView textView = (TextView) view; + final TextView textView = (TextView) view; // rotate coordinate formats on click textView.setText(coordinates.format(availableFormats[position])); } |