Fixing build with JDK 6

This commit is contained in:
Francesco Chicchiriccò 2014-04-11 14:38:34 +02:00
parent e9b71f34bd
commit 67ba360b7f
1 changed files with 2 additions and 2 deletions

View File

@ -663,7 +663,7 @@ public abstract class AbstractServices {
final FITAtomDeserializer atomDeserializer = Commons.getAtomDeserializer(version); final FITAtomDeserializer atomDeserializer = Commons.getAtomDeserializer(version);
final AtomSerializer atomSerializer = Commons.getAtomSerializer(version); final AtomSerializer atomSerializer = Commons.getAtomSerializer(version);
final Container<Feed> container = atomDeserializer.read(feed, AtomFeedImpl.class); final Container<AtomFeedImpl> container = atomDeserializer.read(feed, AtomFeedImpl.class);
setInlineCount(container.getObject(), count); setInlineCount(container.getObject(), count);
@ -679,7 +679,7 @@ public abstract class AbstractServices {
mapper.writeValue( mapper.writeValue(
writer, new JsonFeedContainer<JSONFeedImpl>(container.getContextURL(), container.getMetadataETag(), writer, new JsonFeedContainer<JSONFeedImpl>(container.getContextURL(), container.getMetadataETag(),
(new DataBinder(version)).getJsonFeed((AtomFeedImpl) container.getObject()))); new DataBinder(version).getJsonFeed(container.getObject())));
} }
return xml.createResponse(new ByteArrayInputStream(content.toByteArray()), return xml.createResponse(new ByteArrayInputStream(content.toByteArray()),