Skip to content

Commit

Permalink
fix compilation problem
Browse files Browse the repository at this point in the history
  • Loading branch information
pvojtechovsky committed Nov 10, 2016
1 parent bf4db3f commit 6726695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/spoon/support/reflect/code/CtLambdaImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public <T extends CtBodyHolder> T setBody(CtStatement statement) {
}

@Override
public <B extends T, C extends CtExecutable<T>> C setBody(CtBlock<B> body) {
public <C extends CtExecutable<T>> C setBody(CtBlock<T> body) {
if (expression != null && body != null) {
throw new SpoonException("A lambda can't have two bodys.");
}
Expand Down

0 comments on commit 6726695

Please sign in to comment.