Skip to content

Commit

Permalink
Pass Supplier to constructor, not actual StreamReceiver
Browse files Browse the repository at this point in the history
Fixes the problem mentioned in 95b24fe for the new constructor too
  • Loading branch information
fsteeg committed May 12, 2020
1 parent 923955c commit dd1a9e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metamorph/src/main/java/org/metafacture/metamorph/Entity.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ public Entity(final Metamorph metamorph) {
this.receiver = () -> metamorph.getStreamReceiver();
}

public Entity(final StreamReceiver receiver) {
this.receiver = () -> receiver;
public Entity(final Supplier<StreamReceiver> receiver) {
this.receiver = receiver;
}

public void setNameSource(final NamedValueSource source) {
Expand Down

0 comments on commit dd1a9e9

Please sign in to comment.