Class TritiumReplaceGauge<T>


  • public final class TritiumReplaceGauge<T>
    extends java.lang.Object
    Remove unnecessary 'remove' invocation prior to a 'registerWithReplacement'. This refaster rule pairs with the 'UnsafeGaugeRegistration' error-prone rule to replace 'registry.remove(name); registry.gauge(name, value);' with a single 'registerWithReplacement' call. This refaster rule intentionally doesn't check the 'gauge' method in order to avoid creating changes that don't compile when older versions of Tritium are present.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TritiumReplaceGauge

        public TritiumReplaceGauge()