-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Fix/1422 for corner cases. #1427
Conversation
|
I think the first commit is accidental. Also, you have checkstyle violations. |
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.
Maybe if you just create an if (element.getAnnotation(DrawableRes.class) != null) then call a method and handle all @DrawableRes related things, it would be cleaner and better structured.
|
There is a problem: |
c1f556e to
be21184
Compare
|
Unfortunately I'm not able to reproduce the failing test for |
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.
Should we inline this method?
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.
Nope, this is fine.
|
I ran the test from within Eclipse, did you try that?
|
|
No, I'm using TextMate & maven for this. Any chance you can help me out for the Eclipse-testing part, please? ;-) |
|
OK, i found out what is the problem with the classpath. The POM defines 4.1.1.4 version of the Android dependency. However, in our setup, we also add the Actually the POM also defined the 1.6 version Android dep, but 1b9f70e changed it to 4.1.1.4. I think it was a bad idea, because in our tests, we simulate we do not have |
|
@ened i think we should refactor |
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.
This is not needed, since ElementFilter.methodsIn() already returns ExecutableElements.
|
@WonderCsabo got it. |
|
@ened please squash the current two commits. |
|
@ened did you read #1427 (comment)? |
|
@WonderCsabo yes, I'm on it, later tonight hopefully. |
|
OK, thanks, just add some reactions to let me know you saw it. :) |
|
@WonderCsabo added the abstraction. Regarding the "missing" unit test, it turns out we have it already, I think: |
|
Thanks for creating an abstraction. However, that should have go in a separate commit. Any chance you can split the commit into two? |
|
@WonderCsabo Is it a big a deal? I've been re-basing the entire time. Will have to undo that. |
|
Thanks for all your work on this. I will split it myself, then. |
|
Merged and rebased as of 1d36b13. Thanks! |
No description provided.