Skip to content

Commit

Permalink
epic extract
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Girardot committed Mar 3, 2015
1 parent 6554a48 commit 520218c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ public Void visitVariable(VariableElement field, Void aVoid) {

@Override
public Void visitExecutable(ExecutableElement e, Void aVoid) {
if (e.getKind().equals(ElementKind.CONSTRUCTOR)) {
ElementKind manKind = e.getKind();

This comment has been minimized.

Copy link
@fbiville

fbiville Mar 3, 2015

Collaborator

ah ben bravo :P

if (manKind.equals(ElementKind.CONSTRUCTOR)) {
for (VariableElement ctorParameter : e.getParameters()) {
addToQueryParametersIfApplicable(queryParameters, ctorParameter);
}
} else if (e.getKind().equals(ElementKind.METHOD) &&
} else if (manKind.equals(ElementKind.METHOD) &&
e.getSimpleName().toString().startsWith("set")
&& typeUtils.isSameType(e.getReturnType(),typeUtils.getNoType(TypeKind.VOID))) {
addToQueryParametersIfApplicable(queryParameters, e);
Expand Down

0 comments on commit 520218c

Please sign in to comment.