Skip to content

Conversation

@Nava2
Copy link
Contributor

@Nava2 Nava2 commented Jun 1, 2017

This supersedes #106.

Addresses comments from #106, adds more tests, includes commit with fixes for #105.

Closes #105, #106.

Nava2 added 2 commits June 1, 2017 09:26
* Added `findGetterDescriptionForField(FieldDescription base)` to
  check against all known prefixes for methods that clash
* Extended test case for FieldPropertyClash to include predicate
  case
* Addresses comments from @joel-costigliola in assertj#106
* Broke method into two: one for presence, one for getting the values
* Added many more tests
return o1.length() - o2.length();
}
});
SortedSet<String> packages = new TreeSet<>(Comparator.comparing(String::length));
Copy link
Member

Choose a reason for hiding this comment

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

sorry still on java 7 !

this.declaredFieldsDescriptions.addAll(declaredFieldDescriptions);
}

Stream<GetterDescription> getGetterStreamForField(FieldDescription base) {
Copy link
Member

Choose a reason for hiding this comment

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

same thing java 7 only 😿 will be java 8 for 3.0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should probably add the restriction to Maven. I forgot and IntelliJ let me do it, so I just went with it. :(

Copy link
Member

Choose a reason for hiding this comment

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

I'm integrating this PR and reworking it to use java 7

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Damn, I forgot about this -- I'm sorry.

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.

If field and getter predicates share property name, colliding signatures are generated

2 participants