diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2014-09-09 13:52:19 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2014-09-09 13:52:53 +0200 |
| commit | 789130734996ee989e534d7b841fc71a23063002 (patch) | |
| tree | 2013ecc34e7f21bc59b52c0e5ef6f9ddaf270ea0 /main/src/cgeo/geocaching/ui | |
| parent | f68437aa50c15bc8d2958589fdc4f38c1a79a38c (diff) | |
| download | cgeo-789130734996ee989e534d7b841fc71a23063002.zip cgeo-789130734996ee989e534d7b841fc71a23063002.tar.gz cgeo-789130734996ee989e534d7b841fc71a23063002.tar.bz2 | |
Name ignored catch parameter as such
Diffstat (limited to 'main/src/cgeo/geocaching/ui')
4 files changed, 6 insertions, 6 deletions
diff --git a/main/src/cgeo/geocaching/ui/AnchorAwareLinkMovementMethod.java b/main/src/cgeo/geocaching/ui/AnchorAwareLinkMovementMethod.java index d4c2e10..870eef1 100644 --- a/main/src/cgeo/geocaching/ui/AnchorAwareLinkMovementMethod.java +++ b/main/src/cgeo/geocaching/ui/AnchorAwareLinkMovementMethod.java @@ -29,7 +29,7 @@ public class AnchorAwareLinkMovementMethod extends LinkMovementMethod { public boolean onTouchEvent(TextView widget, Spannable buffer, MotionEvent event) { try { return super.onTouchEvent(widget, buffer, event); - } catch (Exception e) { + } catch (Exception ignored) { // local links to anchors don't work } return false; diff --git a/main/src/cgeo/geocaching/ui/DecryptTextClickListener.java b/main/src/cgeo/geocaching/ui/DecryptTextClickListener.java index 3af950f..421d7aa 100644 --- a/main/src/cgeo/geocaching/ui/DecryptTextClickListener.java +++ b/main/src/cgeo/geocaching/ui/DecryptTextClickListener.java @@ -30,7 +30,7 @@ public class DecryptTextClickListener implements View.OnClickListener { } else { targetView.setText(CryptUtils.rot13((String) text)); } - } catch (final RuntimeException ignore) { + } catch (final RuntimeException ignored) { // nothing } } diff --git a/main/src/cgeo/geocaching/ui/IndexOutOfBoundsAvoidingTextView.java b/main/src/cgeo/geocaching/ui/IndexOutOfBoundsAvoidingTextView.java index a0c8b52..30778a1 100644 --- a/main/src/cgeo/geocaching/ui/IndexOutOfBoundsAvoidingTextView.java +++ b/main/src/cgeo/geocaching/ui/IndexOutOfBoundsAvoidingTextView.java @@ -28,7 +28,7 @@ public class IndexOutOfBoundsAvoidingTextView extends TextView { protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { try{ super.onMeasure(widthMeasureSpec, heightMeasureSpec); - } catch (IndexOutOfBoundsException e) { + } catch (IndexOutOfBoundsException ignored) { setText(getText().toString()); super.onMeasure(widthMeasureSpec, heightMeasureSpec); } @@ -38,7 +38,7 @@ public class IndexOutOfBoundsAvoidingTextView extends TextView { public void setGravity(int gravity){ try{ super.setGravity(gravity); - } catch (IndexOutOfBoundsException e) { + } catch (IndexOutOfBoundsException ignored) { setText(getText().toString()); super.setGravity(gravity); } @@ -48,7 +48,7 @@ public class IndexOutOfBoundsAvoidingTextView extends TextView { public void setText(CharSequence text, BufferType type) { try{ super.setText(text, type); - } catch (IndexOutOfBoundsException e) { + } catch (IndexOutOfBoundsException ignored) { setText(text.toString()); } } diff --git a/main/src/cgeo/geocaching/ui/dialog/CoordinatesInputDialog.java b/main/src/cgeo/geocaching/ui/dialog/CoordinatesInputDialog.java index 9aee71a..72eabf4 100644 --- a/main/src/cgeo/geocaching/ui/dialog/CoordinatesInputDialog.java +++ b/main/src/cgeo/geocaching/ui/dialog/CoordinatesInputDialog.java @@ -421,7 +421,7 @@ public class CoordinatesInputDialog extends DialogFragment { gp = current; return true; } - } catch (final Geopoint.ParseException e) { + } catch (final Geopoint.ParseException ignored) { // Signaled and returned below } if (signalError) { |
