package com.badinterface; import java.util.List; import java.util.concurrent.Future; class Test { private void foo(BadInterface2 b, BadInterface3 b3) { final Future process = b.process(); final Future> process3 = b3.process(); } }