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

test(TemplateMatcher): add tests for named template matchers (uncovered cases) #1092

Merged
merged 1 commit into from
Jan 9, 2017

Conversation

monperrus
Copy link
Collaborator

*
* returns an appropriate ParameterMatcher defined in a template parameter, or else a default one
*
* if a template parameter (field annotated with @Parameter) whose nme (field name) is a substring of the template name, it also works
Copy link
Collaborator

Choose a reason for hiding this comment

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

nme->name

*/
private ParameterMatcher findParameterMatcher(CtNamedElement templateDeclaration) throws InstantiationException, IllegalAccessException {
String name = templateDeclaration.getSimpleName();
if (templateDeclaration == null) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

move the null check one line above

@monperrus
Copy link
Collaborator Author

monperrus commented Jan 8, 2017 via email

@surli surli merged commit 9f76a01 into INRIA:master Jan 9, 2017
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.

3 participants