Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add serialVersionUID to serializable class #8561

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,11 @@
public static final AuthorizationStrategy UNSECURED = new Unsecured();

public static final class Unsecured extends AuthorizationStrategy implements Serializable {
private static final long serialVersionUID = -7269184394646019967L;
rng70-or marked this conversation as resolved.
Show resolved Hide resolved
/**
* Maintains the singleton semantics.
*/
private Object readResolve() {

Check warning on line 220 in core/src/main/java/hudson/security/AuthorizationStrategy.java

View check run for this annotation

ci.jenkins.io / Java Compiler

checkstyle:check

ERROR: 'METHOD_DEF' should be separated from previous line. [EmptyLineSeparator]

Check warning on line 220 in core/src/main/java/hudson/security/AuthorizationStrategy.java

View check run for this annotation

ci.jenkins.io / Java Compiler

compiler:testCompile

ERROR: 'METHOD_DEF' should be separated from previous line. [EmptyLineSeparator]

Check warning on line 220 in core/src/main/java/hudson/security/AuthorizationStrategy.java

View check run for this annotation

ci.jenkins.io / CheckStyle

EmptyLineSeparatorCheck

ERROR: 'METHOD_DEF' should be separated from previous line.
Raw output
<p>Since Checkstyle 5.8</p><p> Checks for empty line separators after header, package, all import declarations, fields, constructors, methods, nested classes, static initializers and instance initializers. </p><p> ATTENTION: empty line separator is required between AST siblings, not after line where token is found. </p>
return UNSECURED;
}

Expand Down
Loading