Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Remove any logic from isWriteable #22

Merged
merged 3 commits into from
Apr 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,7 @@ protected static boolean isWriteable(final Class<?> type,
final MediaType actualMediaType,
final MediaType ... requiredMediaTypes)
{
if (type.getAnnotation(OslcResourceShape.class) != null ||
type.getAnnotation(OslcNotQueryResult.class) != null)
{
// We do not have annotations when running from the non-web client.
return isCompatible(actualMediaType, requiredMediaTypes);
}

return false;
return true;
}

protected void writeTo(final Object[] objects,
Expand Down