diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2014-07-17 19:20:35 +0200 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2014-07-17 19:20:35 +0200 |
commit | 65eb16770153f1751c353713b7b4a355470954ad (patch) | |
tree | 52fdfcbe990f1106b61cba40bc4dc67840cdfe44 /main/src/cgeo/geocaching/utils/HtmlUtils.java | |
parent | df8983c679179c1713ee711d7afed484d617e36c (diff) | |
download | cgeo-65eb16770153f1751c353713b7b4a355470954ad.zip cgeo-65eb16770153f1751c353713b7b4a355470954ad.tar.gz cgeo-65eb16770153f1751c353713b7b4a355470954ad.tar.bz2 |
switch to Java 1.7
At least since march both ADT and Android Studio support Java 7 features
in Android development. Let's use them.
Diffstat (limited to 'main/src/cgeo/geocaching/utils/HtmlUtils.java')
-rw-r--r-- | main/src/cgeo/geocaching/utils/HtmlUtils.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/utils/HtmlUtils.java b/main/src/cgeo/geocaching/utils/HtmlUtils.java index 37e20ec..51c4d6e 100644 --- a/main/src/cgeo/geocaching/utils/HtmlUtils.java +++ b/main/src/cgeo/geocaching/utils/HtmlUtils.java @@ -34,7 +34,7 @@ public final class HtmlUtils { if (html instanceof Spanned) { Spanned text = (Spanned) html; Object[] styles = text.getSpans(0, text.length(), Object.class); - ArrayList<Pair<Integer, Integer>> removals = new ArrayList<Pair<Integer, Integer>>(); + ArrayList<Pair<Integer, Integer>> removals = new ArrayList<>(); for (Object style : styles) { if (style instanceof ImageSpan) { int start = text.getSpanStart(style); |