src/Pure/PIDE/xml.scala
changeset 68169 395432e7516e
parent 67827 b027c97c77c9
child 68265 f0899dad4877
--- a/src/Pure/PIDE/xml.scala	Sun May 13 16:33:11 2018 +0200
+++ b/src/Pure/PIDE/xml.scala	Sun May 13 16:37:36 2018 +0200
@@ -154,7 +154,10 @@
 
   /** cache for partial sharing (weak table) **/
 
-  class Cache(initial_size: Int = 131071, max_string: Int = 100)
+  def make_cache(initial_size: Int = 131071, max_string: Int = 100): Cache =
+    new Cache(initial_size, max_string)
+
+  class Cache private[XML](initial_size: Int, max_string: Int)
   {
     private val table =
       Collections.synchronizedMap(new WeakHashMap[Any, WeakReference[Any]](initial_size))