-
-
Notifications
You must be signed in to change notification settings - Fork 342
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
Invalid output type #81
Comments
@KonstantinSviridov I don't get your intention with that issue. Is it because of the typo? |
@boeserwolf91 In my code I set command line parameters and I want to write something like ArrayList<String> lst = new ArrayList<String>();
lst.add("--output-type");
lst.add(OutputType.NO_OUTPUT.toString()); but I can not. Anyway, I would not have come here because of this typo only :-) |
Ah I see. Now I got you :) and just to clarify. It's not my code haha I'm not related to Inria. I noticed the typo as I provided the pull request #64 |
@KonstantinSviridov by the way you could write something like the following for a workaround: ArrayList<String> lst = new ArrayList<String>();
lst.add("--output-type");
lst.add(OutputType.NO_OUTPUT.name().toLowerCase().replaceAll("_","")); |
It would be best to avoid duplicating the names in the enum |
I agree with @pschichtel |
Oh ok, I got it now. This issue is about the typo. Well, when the PR of @boeserwolf91 will be merged, we'll can fix that typo. |
@GerardPaligot it would be better to drop the strings entirely |
Indeed, they aren't very useful. |
…oducable without that field; fixes INRIA#81
…ducible without that field; fixes INRIA#81
Hi, guys!
In
https://github.com/INRIA/spoon/blob/master/src/main/java/spoon/OutputType.java
we have
NO_OUTPUT("noouput"),
which pevents us from using this enum value.The text was updated successfully, but these errors were encountered: