class Test { /** * @throws ArrayIndexOutOfBoundsException in some case * @throws ArrayIndexOutOfBoundsException and in some other case */ void foo() throws ArrayIndexOutOfBoundsException { } }