All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.flipkart.zjsonpatch.NoopProcessor Maven / Gradle / Ivy

There is a newer version: 0.4.16
Show newest version
package com.flipkart.zjsonpatch;

import com.fasterxml.jackson.databind.JsonNode;

import java.util.List;

/** A JSON patch processor that does nothing, intended for testing and validation. */
public class NoopProcessor implements JsonPatchProcessor {
    static NoopProcessor INSTANCE;
    static {
        INSTANCE = new NoopProcessor();
    }

    @Override public void remove(List path) {}
    @Override public void replace(List path, JsonNode value) {}
    @Override public void add(List path, JsonNode value) {}
    @Override public void move(List fromPath, List toPath) {}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy