> -            input = 
> CHAR_TO_PATTERN.get(match).matcher(input).replaceAll(replacement);
> -         } catch (ExecutionException e) {
> -            throw new IllegalStateException("error creating pattern: " + 
> match, e);
> -         }
> -      }
> -      return input;
> -   }
> -
> -   private static final LoadingCache<Character, Pattern> CHAR_TO_PATTERN = 
> CacheBuilder.newBuilder()
> -         .<Character, Pattern> build(new CacheLoader<Character, Pattern>() {
> -            @Override
> -            public Pattern load(Character plain) {
> -               return Pattern.compile(plain + "");
> -            }
> -         });
> -   

Getting rid of the pattern cache here...is that replaced by an internal cache 
in the JDK code somewhere? Or is caching here no longer required?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/21/files#r4441484

Reply via email to