Skip to content
Browse files

proper type for ListItem

  • Loading branch information...
1 parent 05eac3d commit 8bad1e46a2965e0ab660d96c77e0b75d448c19da @heiko-braun committed Apr 19, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 widgets/src/main/java/org/jboss/ballroom/client/widgets/forms/ListItem.java
View
8 widgets/src/main/java/org/jboss/ballroom/client/widgets/forms/ListItem.java
@@ -32,10 +32,10 @@
* @author Heiko Braun
* @date 5/12/11
*/
-public class ListItem extends FormItem<List> {
+public class ListItem extends FormItem<List<String>> {
private TextArea textArea;
- private List value = new ArrayList();
+ private List<String> value = new ArrayList<String>();
private boolean displayOnly;
@@ -80,7 +80,7 @@ public boolean validate(List value) {
}
@Override
- public List getValue() {
+ public List<String> getValue() {
String[] split = textArea.getText().split("\n");
value.clear();
@@ -93,7 +93,7 @@ public List getValue() {
}
@Override
- public void setValue(List list) {
+ public void setValue(List<String> list) {
this.value.clear();

0 comments on commit 8bad1e4

Please sign in to comment.
Something went wrong with that request. Please try again.