Skip to content

Commit

Permalink
Fixes to make example compatible to ECF generic transport
Browse files Browse the repository at this point in the history
  • Loading branch information
cschneider committed Jul 3, 2015
1 parent 2950bb6 commit 257e660
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
@@ -1,8 +1,14 @@
package net.lr.tasklist.model;

import java.io.Serializable;
import java.util.Date;

public class Task {
public class Task implements Serializable {
/**
* Only needed for ECF generic transport
*/
private static final long serialVersionUID = 5117254163782139591L;

String id;
String title;
String description;
Expand Down
@@ -1,5 +1,6 @@
package net.lr.tasklist.persistence.impl;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
Expand Down Expand Up @@ -37,7 +38,8 @@ public void addTask(Task task) {

@Override
public Collection<Task> getTasks() {
return taskMap.values();
// taskMap.values is not serializable
return new ArrayList<Task>(taskMap.values());
}

@Override
Expand Down

0 comments on commit 257e660

Please sign in to comment.