I am just starting to us Guava in place of Google-Collections. The Splitter class seemed cool. But when I use it, like this:
private static final Pattern p =
What version of Guava are you using? This works perfectly fine for me with r05.
Edit: It seems like the specific issue here is that you have both google-collections and guava in your runtime classpath. Platform
(an internal class) existed in google-collections but didn't have the precomputedCharMatcher
method. Splitter
is being loaded from the guava jar properly, but Platform
is being loaded from the google-collect jar.