Skip to content
This repository was archived by the owner on Jun 6, 2025. It is now read-only.
Open
Show file tree
Hide file tree
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 @@ -39,7 +39,7 @@
* admin role. If not it uses a predicate to determine if the user can access a resource.
*/
@SuppressFBWarnings(value = "SE_BAD_FIELD", justification = "Gets serialised by the JSC cache")
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, property = "class")
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "class")
public class AccessPredicate implements BiPredicate<User, String>, Serializable {

private final Predicate<User> userPredicate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
* @see uk.gov.gchq.gaffer.data.element.function.ElementTransformer
*/
@JsonDeserialize(builder = View.Builder.class)
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = As.EXISTING_PROPERTY, property = "class", defaultImpl = View.class)
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = As.EXISTING_PROPERTY, property = "class", defaultImpl = View.class)
@JsonPropertyOrder(value = {"class", "edges", "entities", "allEdges", "allEntities", "globalElements", "globalEntities", "globalEdges"}, alphabetic = true)
@JsonSimpleClassName(includeSubtypes = true)
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*
* @param <OBJ> the type of domain object
*/
@JsonTypeInfo(use = Id.CLASS, include = As.PROPERTY, property = "class")
@JsonTypeInfo(use = Id.NAME, include = As.PROPERTY, property = "class")
public interface ElementGenerator<OBJ> extends Function<Iterable<? extends OBJ>, Iterable<? extends Element>> {
// Empty marker interface
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
*
* @param <OBJ> the type of domain object
*/
@JsonTypeInfo(use = Id.CLASS, include = As.PROPERTY, property = "class")
@JsonTypeInfo(use = Id.NAME, include = As.PROPERTY, property = "class")
public interface ObjectGenerator<OBJ> extends Function<Iterable<? extends Element>, Iterable<? extends OBJ>> {
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* be modified.
* </p>
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "class")
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "class")
public interface GraphHook {
/**
* Called from {@link uk.gov.gchq.gaffer.graph.Graph} before an {@link OperationChain}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
* }
* </pre>
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = As.PROPERTY, property = "class", defaultImpl = OperationChain.class)
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = As.PROPERTY, property = "class", defaultImpl = OperationChain.class)
@JsonSimpleClassName(includeSubtypes = true)
public interface Operation extends Closeable {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import java.util.List;

@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "class")
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "class")
@JsonSimpleClassName(includeSubtypes = true)
public interface Match {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
* All StoreProperties classes must be JSON serialisable.
* </p>
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "storePropertiesClassName")
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "storePropertiesClassName")
public class StoreProperties implements Cloneable {
public static final String STORE_CLASS = "gaffer.store.class";
public static final String SCHEMA_CLASS = "gaffer.store.schema.class";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*
* @param <T> the {@link Operation} type
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "class")
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "class")
public interface ScoreResolver<T extends Operation> {
/**
* Should return a (nullable) score for a given operation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import static java.util.Objects.requireNonNull;

@JsonPropertyOrder(value = {"class", "keySerialiser", "valueSerialiser", "jsonStorage"})
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, property = "class")
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "class")
public class CustomMap<K, V> {
private final ToBytesSerialiser<? super K> keySerialiser;
private final ToBytesSerialiser<? super V> valueSerialiser;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* {@code FreqMap} extends {@link HashMap} with String keys and Long values, adding an upsert operation.
*/
@JsonSimpleClassName
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, property = "class")
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "class")
public class FreqMap extends HashMap<String, Long> {
private static final long serialVersionUID = -851105369975081220L;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* sub-types and associated values.
*/
@JsonSimpleClassName
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, property = "class")
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "class")
public class TypeSubTypeValue implements Comparable<TypeSubTypeValue>, Serializable {

private static Comparator<String> stringComparator = Comparator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* values.
*/
@JsonSimpleClassName
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, property = "class")
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "class")
public class TypeValue implements Comparable<TypeValue>, Serializable {

private static Comparator<String> stringComparator = Comparator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
@Summary("Merges 2 CustomMaps by applying a binary operator to each of the values")
public class CustomMapAggregator<K, V> extends KorypheBinaryOperator<CustomMap<K, V>> {
@JsonTypeInfo(
use = Id.CLASS,
use = Id.NAME,
include = As.PROPERTY,
property = "class"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
*/
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
public abstract class CardinalityEntityGenerator<T> implements OneToManyElementGenerator<Element> {
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "class")
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "class")
private Function<Object, Object> vertexValueConverter;

private String group = "Cardinality";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class HllSketchWithValues {

private byte[] bytes = null;

@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, property = "class")
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "class")
private List<Object> values = new ArrayList<>();

public int getLogK() {
Expand Down
Loading