Comments (9)
@KonstantinSviridov I don't get your intention with that issue. Is it because of the typo?
from spoon.
@boeserwolf91
Right. Don't you want to correct typos in your code? :-)
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 :-)
from spoon.
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
I planned to refactor this class after this pull request was merged. I want to modify the method fromString because the names are duplicated. I'll correct the typo if I provide the other pull request after the current one was merged.
from spoon.
@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("_",""));
from spoon.
It would be best to avoid duplicating the names in the enum
from spoon.
I agree with @pschichtel
from spoon.
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.
from spoon.
@GerardPaligot it would be better to drop the strings entirely
from spoon.
Indeed, they aren't very useful.
from spoon.
Related Issues (20)
- [Bug]: InvocationFilter not filtering all instances of reference HOT 1
- [Bug]: Type reference building logic fails within lambda bodies
- [Information] How to differentiate methods calls in java code while method overloading in same class
- [Bug]: When I use IncrementalLauncher, if I set setShouldCompile to false, it will always rebuild
- Spoon hangs when building a model when nested conditional expressions containing a pattern matching with variable creation
- [Bug]: CtComment getpath() throws a NullPointerException
- Query regarding support for Java 21 features HOT 4
- [Bug]: When you import a static inner class, spoon converts it to a non-static import HOT 4
- `equals()` semantics on `CtType`? HOT 6
- [Bug]: CtAnnotation Type in Annonymous Class is null HOT 5
- [Bug]: When an overloaded method takes a class other than the project's class, the ctExecutableReference is broken
- [Bug]: Why is the result of @Test different from the result of main
- [Bug]: Spoon classes consuming much memory HOT 1
- [Bug]: A null pointer exception occurred in build model HOT 1
- [Bug]: StackOverflowError occurred in CtExecutableReference.getExecutableDeclaration HOT 5
- [Bug]: Not allowed javaletter or keyword in identifier found HOT 5
- Move or delete spoon testing package from src/main HOT 1
- Delete old unused javadoc package HOT 2
- [Bug]: Under multithreading, using the isOverriding method will lead to incorrect results of the getElements method
- [Bug]: How to correctly recognize the signature of invoked methods in lambda expression?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spoon.