void update()

in src/main/java/org/apache/sling/validation/impl/ValidatorMap.java [189:194]


    void update(@NotNull String id, @NotNull Validator<?> validator, ServiceReference<Validator<?>> serviceReference, Integer severity) {
        LOG.info("Updating validator with id '{}'", id);
        // the id might have been changed, therefore remove old entry by looking up the service reference!
        remove(serviceReference);
        put(id, validator, serviceReference, severity);
    }