Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Joiner cannot be applied to (char) - compilation fails #57

Closed
jeena opened this issue Jan 7, 2013 · 1 comment
Closed

Joiner cannot be applied to (char) - compilation fails #57

jeena opened this issue Jan 7, 2013 · 1 comment

Comments

@jeena
Copy link

jeena commented Jan 7, 2013

mvn install gives me this error:

/essayist/src/main/java/com/moandjiezana/tent/essayist/config/Routes.java:[43,17] on(java.lang.String) in com.google.common.base.Joiner cannot be applied to (char)

If I change it from return Joiner.on('\n').join(tags); to return Joiner.on("\n").join(tags); then it compiles.

@mwanji
Copy link
Owner

mwanji commented Jan 7, 2013

Odd, the method exists: http://docs.guava-libraries.googlecode.com/git-history/v13.0.1/javadoc/com/google/common/base/Joiner.html#on(char)

Having looked at the Joiner code, it just turns the char into a String and delegates to on(String), so it's probably better to use that one directly.

Should be fixed in a092f8e

@mwanji mwanji closed this as completed Jan 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants