-
Notifications
You must be signed in to change notification settings - Fork 96
[eclipse/xtext#1569] Refactor Xtend to Java #1268
Conversation
0edd374
to
c8b99d5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please apply some cleanup actions
...se.xtext/src/org/eclipse/xtext/parser/antlr/AbstractAntlrParserBasedTokenSourceProvider.java
Outdated
Show resolved
Hide resolved
org.eclipse.xtext/src/org/eclipse/xtext/parser/antlr/AbstractTokenSourceProvider.java
Outdated
Show resolved
Hide resolved
org.eclipse.xtext/src/org/eclipse/xtext/resource/ForwardingEObjectDescription.java
Outdated
Show resolved
Hide resolved
org.eclipse.xtext/src/org/eclipse/xtext/resource/ForwardingEObjectDescription.java
Outdated
Show resolved
Hide resolved
c8b99d5
to
263a1db
Compare
org.eclipse.xtext/src/org/eclipse/xtext/service/AllRulesCache.java
Outdated
Show resolved
Hide resolved
...se.xtext/src/org/eclipse/xtext/parser/antlr/AbstractAntlrParserBasedTokenSourceProvider.java
Outdated
Show resolved
Hide resolved
...se.xtext/src/org/eclipse/xtext/parser/antlr/AbstractAntlrParserBasedTokenSourceProvider.java
Outdated
Show resolved
Hide resolved
org.eclipse.xtext/src/org/eclipse/xtext/service/OperationCanceledError.java
Outdated
Show resolved
Hide resolved
org.eclipse.xtext/src/org/eclipse/xtext/service/OperationCanceledError.java
Outdated
Show resolved
Hide resolved
org.eclipse.xtext/src/org/eclipse/xtext/service/OperationCanceledManager.java
Outdated
Show resolved
Hide resolved
263a1db
to
c8bc7c7
Compare
org.eclipse.xtext/src/org/eclipse/xtext/service/AllRulesCache.java
Outdated
Show resolved
Hide resolved
org.eclipse.xtext/src/org/eclipse/xtext/service/AllRulesCache.java
Outdated
Show resolved
Hide resolved
org.eclipse.xtext/src/org/eclipse/xtext/service/AllRulesCache.java
Outdated
Show resolved
Hide resolved
org.eclipse.xtext/src/org/eclipse/xtext/service/AllRulesCache.java
Outdated
Show resolved
Hide resolved
org.eclipse.xtext/src/org/eclipse/xtext/service/OperationCanceledError.java
Outdated
Show resolved
Hide resolved
org.eclipse.xtext/src/org/eclipse/xtext/service/OperationCanceledManager.java
Outdated
Show resolved
Hide resolved
org.eclipse.xtext/src/org/eclipse/xtext/service/OperationCanceledManager.java
Outdated
Show resolved
Hide resolved
org.eclipse.xtext/src/org/eclipse/xtext/service/OperationCanceledManager.java
Outdated
Show resolved
Hide resolved
org.eclipse.xtext/src/org/eclipse/xtext/service/OperationCanceledManager.java
Outdated
Show resolved
Hide resolved
org.eclipse.xtext/src/org/eclipse/xtext/service/OperationCanceledManager.java
Outdated
Show resolved
Hide resolved
There should be a cleanup action that allows to remove redundant parentheses and redundant modifiers. |
The "remove redundant modifiers" action does not remove final modifiers from parameters. How could this be decided that it might not be wanted? It removes e.g. 'public' on interface fields/methods. BTW: I have implemented this cleanup action :) I think we should configure those common cleanup actions on the projects with separate issue. |
No I don't think so. When we migrate the stuff to Java, the result should look nice and not like a second class citizen. |
Right. What I meant is: When we already agreed which cleanup actions make sense in general, then we could store these settings in the projects. For the migration it is clear that the resulting Java code should look nice as hand crafted, and applying the cleanup actions is just task to achieve this. |
c8bc7c7
to
3043dc2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noticed a new xtend quirk. We always cast the variable when we did an instanceof check even though that might not be needed
org.eclipse.xtext/src/org/eclipse/xtext/service/AllRulesCache.java
Outdated
Show resolved
Hide resolved
org.eclipse.xtext/src/org/eclipse/xtext/service/OperationCanceledManager.java
Outdated
Show resolved
Hide resolved
org.eclipse.xtext/src/org/eclipse/xtext/service/OperationCanceledManager.java
Show resolved
Hide resolved
The usage of Xtend in the Xtext code base should be reduced where the usage of Xtend is not super beneficial. Replaced Xtend classes by the compiled code and refactored the code to more readable Java. Performed source cleanup action. Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
3043dc2
to
5703d41
Compare
@szarnekow I think all issues should be adressed now. Could you have a look again, please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The usage of Xtend in the Xtext code base should be reduced where the
usage of Xtend is not super beneficial. Replaced Xtend classes by the
compiled code and refactored the code to more readable Java.
Signed-off-by: Karsten Thoms karsten.thoms@itemis.de