Commit 0c3b7c4d authored by Piotr Gawron's avatar Piotr Gawron
Browse files

unused imports removed

parent d97f695e
package lcsb.mapviewer.modelutils.serializer.model.user;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import lcsb.mapviewer.model.map.MiriamType;
import lcsb.mapviewer.model.user.UserAnnotationSchema;
import lcsb.mapviewer.model.user.UserClassAnnotators;
import lcsb.mapviewer.model.user.UserClassRequiredAnnotations;
......@@ -37,25 +32,25 @@ public class UserAnnotationSchemaSerializer extends JsonSerializer<UserAnnotatio
gen.writeObjectField(userClassAnnotators.getClassName(), userClassAnnotators.getAnnotators());
}
gen.writeEndObject();
gen.writeObjectFieldStart("element-required-annotations");
for (UserClassRequiredAnnotations requiredAnnotations : schema.getClassRequiredAnnotators()) {
gen.writeObjectField(requiredAnnotations.getClassName(), requiredAnnotations);
}
gen.writeEndObject();
gen.writeObjectFieldStart("element-valid-annotations");
for (UserClassValidAnnotations userClassAnnotators : schema.getClassValidAnnotators()) {
gen.writeObjectField(userClassAnnotators.getClassName(), userClassAnnotators.getValidMiriamTypes());
}
gen.writeEndObject();
gen.writeObjectFieldStart("gui-preferences");
for (UserGuiPreference userGuiPreference : schema.getGuiPreferences()) {
gen.writeObjectField(userGuiPreference.getKey(), userGuiPreference.getValue());
}
gen.writeEndObject();
gen.writeEndObject();
}
}
\ No newline at end of file
Markdown is supported
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