Please review JDK-8059321

Aleksey Shipilev aleksey.shipilev at oracle.com
Mon Sep 29 18:57:35 UTC 2014


On 09/29/2014 10:55 PM, Aleksey Shipilev wrote:
>   public static void validate(final String pattern, final String flags)
>        throws ParserException {
>     final Set<String> cache = VALID_CACHE_SET;
>     if (VALID_CACHE_SET.add(pattern + flags)) {
>       instance.compile(pattern, flags);
>     }
>   }

That is...

   public static void validate(final String pattern, final String flags)
        throws ParserException {
     if (VALID_CACHE_SET.add(pattern + flags)) {
       instance.compile(pattern, flags);
     }
   }

-Aleksey.



More information about the nashorn-dev mailing list