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

Cleanup #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Cleanup #13

wants to merge 2 commits into from

Conversation

sgoldfed
Copy link
Owner

@sgoldfed sgoldfed commented Jul 3, 2013

Large changes:

1.Added testing utility method to makes test classes cleaner and
refactored all test classes to use it.

  1. Changed MultiMatcher to return the set when using ANY. This is a
    proposal, although no code currently uses it. I'd appreciate feedback on
    whether or not this is an improvement.

Small changes: made some matchers static, added copyright header, a few small refactorings

1.Adding testing utility method to makes test classes cleaner and
refactored all test classes to use it.

2. Changed MultiMatcher to return the set when using ANY. This is a
proposal, although no code currently uses it. I'd appreciate feedback on
whether or not this is an improvement.
@ghost ghost self-assigned this Jul 3, 2013
@@ -48,7 +48,7 @@

private static final String ASSISTED_ANNOTATION = "com.google.inject.assistedinject.Assisted";

private Matcher<VariableTree> constructorAssistedParameterMatcher = new Matcher<VariableTree>() {
private Matcher<VariableTree> ASSISTED_CONSTRUCTOR_MATCHER = new Matcher<VariableTree>() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this not final also? If not final, then it shouldn't be all-caps. If stateless and singular, then it shoudl be final.

@cgruber
Copy link
Collaborator

cgruber commented Aug 21, 2013

This looks generally awesome, but I would get Eddie or Caitlin to check it out - you do some cleanups that seem like they make logical changes (Short circuited boolean checks, etc.) that I don't feel I know the system well enough to adequately assess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants