You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package foo;
import org.takes.Request;
import org.takes.Response;
import org.takes.Take;
import org.takes.rs.RsText;
/**
* Test.
* @since 1.0
*/
public final class EmptyLineError implements Take {
/**
* Some enum.
*
* @since 1.0
*/
private enum SomeEnum {
/**
* Foo.
*/
FOO,
/**
* Bar.
*/
BAR;
}
@Override
public Response act(final Request req) {
return new RsText(SomeEnum.FOO.name());
}
}
Triggers qulice errors:
[INFO] Checkstyle: src/main/java/foo/EmptyLineError.java[29]: Empty line between javadoc and subject (JavadocLocationCheck)
[INFO] Checkstyle: src/main/java/foo/EmptyLineError.java[30]: Empty line between javadoc and subject (JavadocLocationCheck)
[INFO] Checkstyle: src/main/java/foo/EmptyLineError.java[31]: Empty line between javadoc and subject (JavadocLocationCheck)
The line 31 is just above the @Override annotation, however:
There are no 3 empty lines reported by qulice,
There should be no javadoc for method act because it is inherited from interface org.takes.Take.
Hence, errors are false positives.
Placing the whole enum below act method is a workaround to clean those errors.
The text was updated successfully, but these errors were encountered:
@golszewski86/z this project will fix the problem faster if you donate a few dollars to it; just click here and pay via Stripe, it's very fast, convenient and appreciated; thanks a lot!
The following class:
Triggers qulice errors:
The line 31 is just above the
@Override
annotation, however:act
because it is inherited from interface org.takes.Take.Hence, errors are false positives.
Placing the whole enum below
act
method is a workaround to clean those errors.The text was updated successfully, but these errors were encountered: