Class StringLiteralDeduplicator


public final class StringLiteralDeduplicator extends Object
A cache in front of Java's string interning. This method assumes that it is only called with strings that are already part of the JVM's string pool so that interning them does not grow the pool. Calling it with strings not in the interned string pool is not advisable as its performance may deteriorate to slower than outright calls to String.intern().
  • Constructor Details

    • StringLiteralDeduplicator

      public StringLiteralDeduplicator()
  • Method Details