From 7ed46deb7b4ab2f8b506c91385b94fa8f036256f Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Thu, 19 Dec 2013 14:12:37 +0100 Subject: [PATCH] #129 - ResourceSupport does not return an unmodifiable link collection anymore. Needed to not fail during JAXB deserialization. --- src/main/java/org/springframework/hateoas/ResourceSupport.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/springframework/hateoas/ResourceSupport.java b/src/main/java/org/springframework/hateoas/ResourceSupport.java index e83aeaee..9c012b75 100755 --- a/src/main/java/org/springframework/hateoas/ResourceSupport.java +++ b/src/main/java/org/springframework/hateoas/ResourceSupport.java @@ -16,7 +16,6 @@ package org.springframework.hateoas; import java.util.ArrayList; -import java.util.Collections; import java.util.List; import javax.xml.bind.annotation.XmlElement; @@ -95,7 +94,7 @@ public class ResourceSupport implements Identifiable { @org.codehaus.jackson.annotate.JsonProperty("links") @com.fasterxml.jackson.annotation.JsonProperty("links") public List getLinks() { - return Collections.unmodifiableList(links); + return links; } /**