Skip to content

Commit

Permalink
#166: back to intended type saftety - still working with both java co…
Browse files Browse the repository at this point in the history
…mpilers
  • Loading branch information
hohwille committed Jan 6, 2016
1 parent 5a78b3d commit 2da2b20
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ public boolean isReadOnly() {
* {@link ObjectValidatorBuilder#and() parent-builder} to create a {@link #copy(AbstractValidator)} of this
* property with the configured validator.
*/
protected <PROPERTY extends GenericPropertyImpl<? extends VALUE>, BUILDER extends ObjectValidatorBuilder<?, PropertyBuilder<PROPERTY>, ?>> BUILDER withValdidator(
protected <PROPERTY extends GenericPropertyImpl<? extends VALUE>, BUILDER extends ObjectValidatorBuilder<? extends VALUE, PropertyBuilder<PROPERTY>, ?>> BUILDER withValdidator(
Function<PropertyBuilder<PROPERTY>, BUILDER> factory) {

PropertyBuilder<PROPERTY> parentBuilder = new PropertyBuilder<>();
Expand All @@ -379,7 +379,7 @@ public boolean isReadOnly() {
* {@link ObjectValidatorBuilder#and() parent-builder} to create a {@link #copy(AbstractValidator)} of this
* property with the configured validator.
*/
public ObjectValidatorBuilder<?, ? extends PropertyBuilder<? extends GenericPropertyImpl<? extends VALUE>>, ?> withValdidator() {
public ObjectValidatorBuilder<? extends VALUE, ? extends PropertyBuilder<? extends GenericPropertyImpl<? extends VALUE>>, ?> withValdidator() {

Function<PropertyBuilder<GenericPropertyImpl<VALUE>>, ObjectValidatorBuilder<VALUE, PropertyBuilder<GenericPropertyImpl<VALUE>>, ?>> factory = new Function<PropertyBuilder<GenericPropertyImpl<VALUE>>, ObjectValidatorBuilder<VALUE, PropertyBuilder<GenericPropertyImpl<VALUE>>, ?>>() {

Expand Down

0 comments on commit 2da2b20

Please sign in to comment.