aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/utils/HtmlUtils.java
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2014-07-17 19:20:35 +0200
committerBananeweizen <bananeweizen@gmx.de>2014-07-17 19:20:35 +0200
commit65eb16770153f1751c353713b7b4a355470954ad (patch)
tree52fdfcbe990f1106b61cba40bc4dc67840cdfe44 /main/src/cgeo/geocaching/utils/HtmlUtils.java
parentdf8983c679179c1713ee711d7afed484d617e36c (diff)
downloadcgeo-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.java2
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);