Class SpotlessCache


  • public final class SpotlessCache
    extends java.lang.Object
    Spotless' global cache. clear() should be called when Spotless is no longer in use to release any resources it has grabbed.
    • Constructor Summary

      Constructors 
      Constructor Description
      SpotlessCache()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean clearOnce​(java.lang.Object key)
      Closes all cached classloaders iff key is not .equals() to the last call to clearOnce().
      • Methods inherited from class java.lang.Object

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

      • SpotlessCache

        public SpotlessCache()
    • Method Detail

      • clearOnce

        public static boolean clearOnce​(@Nullable
                                        java.lang.Object key)
        Closes all cached classloaders iff key is not .equals() to the last call to clearOnce(). If key is null, the clear will always happen (as though null != null).