| /** |
| * This is about <code>ClassName</code>. |
| * {@link com.yourCompany.aPackage.Interface} |
| * @author author |
| * @deprecated use <code>OtherClass</code> |
| */ |
| public class ClassName<E> extends AnyClass implements InterfaceName<String> { |
| enum Color { RED, GREEN, BLUE }; |
| record Point(int x, int y) {}; |
| /* This comment may span multiple lines. */ |
| static Object staticField; |
| // This comment may span only this line |
| private E field; |
| private AbstractClassName field2; |
| // TASK: refactor |
| @SuppressWarnings(value="all") |
| public int foo(Integer parameter) { |
| abstractMethod(inheritedField); |
| int local= 42*hashCode(); |
| var varLocal= local; |
| staticMethod(); |
| return bar(varLocal) + parameter; |
| } |
| } |