class A { /** * @return * {@inheritDoc} **/ int foo(){ return 0; } } class B { /** * @return bar **/ int foo(){ return 0; } }