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

Literals with quoted Strings create uncompileable code #1

Closed
markiewb opened this issue Mar 22, 2013 · 1 comment
Closed

Literals with quoted Strings create uncompileable code #1

markiewb opened this issue Mar 22, 2013 · 1 comment
Assignees
Labels
Milestone

Comments

@markiewb
Copy link
Owner

int a = 5;
String string = "foo";
double d = .5d;

String out = a + " is an integer and \"" + string + "\" is a string and " + d + " is an double";

Now, when you use “Replace ‘+’ with ‘String.format()’” the result is this:

String out = String.format("%s is an integer and " % s);
@ghost ghost assigned markiewb Mar 22, 2013
@markiewb
Copy link
Owner Author

Fixed in 1.0.1

@markiewb markiewb reopened this Mar 24, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant