Skip to content

Commit

Permalink
allow ExampleIntervalJsonSerializer only for FinalInterval
Browse files Browse the repository at this point in the history
  • Loading branch information
kozusznik committed May 9, 2019
1 parent f85de2f commit 967f973
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import java.util.HashMap;
import java.util.Map;

import net.imagej.Dataset;
import net.imagej.server.json.SciJavaJsonSerializer;
import net.imagej.server.services.DefaultJsonService;
import net.imagej.server.services.DefaultObjectService;
Expand Down Expand Up @@ -57,8 +56,7 @@ public static class ExampleIntervalJsonSerializer implements

@Override
public boolean isSupportedBy(Class<?> desiredClass) {
return SciJavaJsonSerializer.super.isSupportedBy(desiredClass) &&
!Dataset.class.isAssignableFrom(desiredClass);
return desiredClass.equals(FinalInterval.class);
}

@Override
Expand Down

0 comments on commit 967f973

Please sign in to comment.