From 6050f7ce2d80ecdfc0d890e86ebacbe474bbbc1c Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Sat, 28 Apr 2012 11:52:02 +0200 Subject: Refactoring: remove redundant initializers The initial values were never used as the variables are set in any case before being used. --- main/src/cgeo/geocaching/files/GPXParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/src/cgeo/geocaching/files/GPXParser.java') diff --git a/main/src/cgeo/geocaching/files/GPXParser.java b/main/src/cgeo/geocaching/files/GPXParser.java index 8a405fc..7870a16 100644 --- a/main/src/cgeo/geocaching/files/GPXParser.java +++ b/main/src/cgeo/geocaching/files/GPXParser.java @@ -193,7 +193,7 @@ public abstract class GPXParser extends FileParser { return null; // id not found } // get text for string - String stringName = null; + String stringName; try { stringName = cgeoapplication.getInstance().getResources().getResourceName(stringId); } catch (NullPointerException e) { -- cgit v1.1