Commit 899a03c0 authored by Gerson Sunye's avatar Gerson Sunye
Browse files

corrected correction

parent 4938456f
package fr.unantes.unidirectional;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
/**
* Created by sunye on 21/11/2016.
*/
public class Window {
private Reference<Field> widgets = new Reference<Field>();
private Reference<Field> widgets = new Reference<Field>(new ArrayList<Field>());
public Reference<Field> getWidgets() {
return widgets;
......@@ -15,7 +16,11 @@ public class Window {
}
class Reference<T> {
private List<T> references = new ArrayList<T>();
private final Collection<T> references;
public Reference(Collection<T> coll) {
this.references = coll;
}
public void add(T ref) {
this.references.add(ref);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment