summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Young <consult.awy@gmail.com>2015-03-03 14:14:47 (GMT)
committerAlan Young <consult.awy@gmail.com>2015-04-10 06:52:20 (GMT)
commit2811d9f331111d9e8014ff2f4bf7dd2707cc56fc (patch)
tree5787e92c77de26af783cdb27c761da720d73970e /src/com/isode/stroke/elements
parent87153e86a3340d3ace31efb4330e60cc937d34f2 (diff)
downloadstroke-2811d9f331111d9e8014ff2f4bf7dd2707cc56fc.zip
stroke-2811d9f331111d9e8014ff2f4bf7dd2707cc56fc.tar.bz2
Remove unused imports & fix some uses of generics.
Change-Id: Id919d64f05964e5cb5657d22c7eaf6ae7199bb7a
Diffstat (limited to 'src/com/isode/stroke/elements')
-rw-r--r--src/com/isode/stroke/elements/DiscoInfo.java8
-rw-r--r--src/com/isode/stroke/elements/DiscoItems.java8
2 files changed, 6 insertions, 10 deletions
diff --git a/src/com/isode/stroke/elements/DiscoInfo.java b/src/com/isode/stroke/elements/DiscoInfo.java
index 4ef1537..35786e7 100644
--- a/src/com/isode/stroke/elements/DiscoInfo.java
+++ b/src/com/isode/stroke/elements/DiscoInfo.java
@@ -3,7 +3,7 @@
* All rights reserved.
*/
/*
- * Copyright (c) 2012, Isode Limited, London, England.
+ * Copyright (c) 2010-2015, Isode Limited, London, England.
* All rights reserved.
*/
package com.isode.stroke.elements;
@@ -174,7 +174,7 @@ public class DiscoInfo extends Payload {
* @return Copy of the list of identities. Non-null.
*/
public List<Identity> getIdentities() {
- return new ArrayList(identities_);
+ return new ArrayList<Identity>(identities_);
}
/**
@@ -191,7 +191,7 @@ public class DiscoInfo extends Payload {
* @return Copy of the list of features. Nonnull.
*/
public List<String> getFeatures() {
- return new ArrayList(features_);
+ return new ArrayList<String>(features_);
}
/**
@@ -221,7 +221,7 @@ public class DiscoInfo extends Payload {
* @return A copy of the list, where the contents are references to the same objects.
*/
public List<Form> getExtensions() {
- return new ArrayList(extensions_);
+ return new ArrayList<Form>(extensions_);
}
}
diff --git a/src/com/isode/stroke/elements/DiscoItems.java b/src/com/isode/stroke/elements/DiscoItems.java
index 8ecd12a..c6aa6dc 100644
--- a/src/com/isode/stroke/elements/DiscoItems.java
+++ b/src/com/isode/stroke/elements/DiscoItems.java
@@ -1,9 +1,5 @@
/*
- * Copyright (c) 2010, Kevin Smith.
- * All rights reserved.
- */
-/*
- * Copyright (c) 2012, Isode Limited, London, England.
+ * Copyright (c) 2010-2015, Isode Limited, London, England.
* All rights reserved.
*/
package com.isode.stroke.elements;
@@ -85,7 +81,7 @@ public class DiscoItems extends Payload {
}
public List<Item> getItems() {
- return new ArrayList(items_);
+ return new ArrayList<Item>(items_);
}
public void addItem(Item item) {