Class ByNameInstantiationUtils.Warned

  • Enclosing class:
    ByNameInstantiationUtils

    public static final class ByNameInstantiationUtils.Warned
    extends java.lang.Object
    A record that a warning about fqcn's absence from the whitelist has already been emitted, under the configuration pcfg. These are the elements of the set callers hand to ByNameInstantiationUtils.checkWarnThrowForInstantiateByNameGated(String,PropertiesConfig,Set), which both reads and writes them. Callers do not usually construct these themselves — they just supply an empty, mutable set for the gate to fill.

    Note that a Warned is keyed on the configuration as well as the class name, so that a configuration change which might have changed the whitelist warns afresh. See that method's documentation for what that implies in practice.

    • Constructor Detail

    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object