fix compilation with OpenJDK

The links cannot be resolved as the BuildLink project does
not have the dependencies to satisfy them.
I tested by hand with a sample `.java` file, it compiles and generates javadoc with either `@code` or `@link`.