diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2013-12-08 19:28:03 +0100 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2013-12-08 19:28:03 +0100 |
| commit | 438682eef6e2e2875f4eb7775706078b7133c644 (patch) | |
| tree | bb44402c7293c321c22eaef64c64650c66cdd4a6 /main/src/cgeo/geocaching/utils/TextUtils.java | |
| parent | c3fcacdb36b8ef6a8535dfbbc9e94fce0ac52d8b (diff) | |
| download | cgeo-438682eef6e2e2875f4eb7775706078b7133c644.zip cgeo-438682eef6e2e2875f4eb7775706078b7133c644.tar.gz cgeo-438682eef6e2e2875f4eb7775706078b7133c644.tar.bz2 | |
findbugs: more cleanup
* include findbugs suppression annotations
* have findbugs settings stored as shared settings
Diffstat (limited to 'main/src/cgeo/geocaching/utils/TextUtils.java')
| -rw-r--r-- | main/src/cgeo/geocaching/utils/TextUtils.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/utils/TextUtils.java b/main/src/cgeo/geocaching/utils/TextUtils.java index 14caf1d..efbb2d7 100644 --- a/main/src/cgeo/geocaching/utils/TextUtils.java +++ b/main/src/cgeo/geocaching/utils/TextUtils.java @@ -3,6 +3,8 @@ */ package cgeo.geocaching.utils; +import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; + import org.eclipse.jdt.annotation.Nullable; import java.util.regex.Matcher; @@ -36,6 +38,7 @@ public final class TextUtils { * Find the last occurring value * @return defaultValue or the n-th group if the pattern matches (trimmed if wanted) */ + @SuppressFBWarnings("DM_STRING_CTOR") public static String getMatch(@Nullable final String data, final Pattern p, final boolean trim, final int group, final String defaultValue, final boolean last) { if (data != null) { |
