Unverified Commit 9901a428 authored by aiwenmo's avatar aiwenmo Committed by GitHub

[Fix-1314] [client] Fix build error: cannot access abstract method directly (#1316)

parent ca7795c1
......@@ -178,7 +178,11 @@ public class LineageContext {
@Override
public <C> C unwrap(Class<C> clazz) {
return StreamOptimizeContext.super.unwrap(clazz);
if(clazz.isInterface()){
return clazz.cast(this);
}else{
return null;
}
}
@Override
......
......@@ -178,7 +178,11 @@ public class LineageContext {
@Override
public <C> C unwrap(Class<C> clazz) {
return StreamOptimizeContext.super.unwrap(clazz);
if (clazz.isInterface()) {
return clazz.cast(this);
} else {
return null;
}
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment