mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#636 - adapt integration test for default and static interface methods (Java8) to eclipse compiler problem
This commit is contained in:
parent
45db85a7be
commit
18532ace8c
@ -23,12 +23,6 @@ import org.mapstruct.Mapper;
|
|||||||
@Mapper
|
@Mapper
|
||||||
public interface SourceTargetBaseMapper {
|
public interface SourceTargetBaseMapper {
|
||||||
|
|
||||||
|
// TODO.. move default and static interface method here when problem in eclipse processor is fixed.
|
||||||
|
|
||||||
default Foo fooFromId(long id) {
|
|
||||||
return new Foo(id);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Bar barFromId(String id) {
|
|
||||||
return new Bar(id);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -33,4 +33,12 @@ public interface SourceTargetMapper extends SourceTargetBaseMapper {
|
|||||||
})
|
})
|
||||||
Target mapSourceToTarget(Source source);
|
Target mapSourceToTarget(Source source);
|
||||||
|
|
||||||
|
default Foo fooFromId(long id) {
|
||||||
|
return new Foo(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
static Bar barFromId(String id) {
|
||||||
|
return new Bar(id);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user