Skip to content

Commit e90a4de

Browse files
author
Vladimir Kotal
committed
add serial version UID
1 parent fed20fd commit e90a4de

File tree

13 files changed

+33
-2
lines changed

13 files changed

+33
-2
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/document/MandocException.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,17 @@
1717
* CDDL HEADER END
1818
*/
1919

20-
/*
20+
/*
2121
* Copyright (c) 2017-2018, Chris Fraire <[email protected]>.
2222
*/
2323
package org.opengrok.indexer.analysis.document;
2424

2525
/**
26-
* Represents an exception that occurs when mandoc exits non-zero.
26+
* Represents an exception that occurs when {@code mandoc} exits non-zero.
2727
*/
2828
public class MandocException extends Exception {
29+
30+
private static final long serialVersionUID = -6615441453265859555L;
31+
2932
public MandocException(String message) { super(message); }
3033
}

opengrok-indexer/src/main/java/org/opengrok/indexer/authorization/AuthorizationStack.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
*/
4848
public class AuthorizationStack extends AuthorizationEntity {
4949

50+
private static final long serialVersionUID = -2116160303238347415L;
51+
5052
private static final Logger LOGGER = LoggerFactory.getLogger(AuthorizationStack.class);
5153

5254
private List<AuthorizationEntity> stack = new ArrayList<>();

opengrok-indexer/src/main/java/org/opengrok/indexer/index/Filter.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import java.util.regex.Pattern;
3434

3535
public class Filter implements Serializable {
36+
3637
private static final long serialVersionUID = 3L;
3738

3839
/** The list of exact filenames */
@@ -216,6 +217,9 @@ private Pattern compilePattern(String pattern) {
216217
}
217218

218219
public static class PatternList extends ArrayList<String> {
220+
221+
private static final long serialVersionUID = -6883390970972775838L;
222+
219223
private final Filter owner;
220224

221225
public PatternList(Filter owner) {

opengrok-indexer/src/main/java/org/opengrok/indexer/index/IgnoredDirs.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
* @author Chandan
3333
*/
3434
public final class IgnoredDirs extends Filter {
35+
private static final long serialVersionUID = -6771850658877396699L;
36+
3537
private static final String[] defaultPatternsDirs = {
3638
"Codemgr_wsdata", // Teamware
3739
"deleted_files", // Teamware

opengrok-indexer/src/main/java/org/opengrok/indexer/index/IgnoredFiles.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
* @author Chandan
3333
*/
3434
public final class IgnoredFiles extends Filter {
35+
36+
private static final long serialVersionUID = 3673125546519046976L;
37+
3538
private static final String[] defaultPatternsFiles = {
3639
"cscope.in.out",
3740
"cscope.out.po",

opengrok-indexer/src/main/java/org/opengrok/indexer/index/IndexVersion.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ public class IndexVersion {
5151
*/
5252
public static class IndexVersionException extends Exception {
5353

54+
private static final long serialVersionUID = -756788782277552544L;
55+
5456
public IndexVersionException(String s) {
5557
super(s);
5658
}

opengrok-indexer/src/main/java/org/opengrok/indexer/index/IndexerException.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
*/
2929
public class IndexerException extends Exception {
3030

31+
private static final long serialVersionUID = -3009093549932264215L;
32+
3133
IndexerException(String string) {
3234
super(string);
3335
}

opengrok-indexer/src/main/java/org/opengrok/indexer/util/ForbiddenSymlinkException.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,8 @@
2828
* encountered while evaluating a file system path.
2929
*/
3030
public class ForbiddenSymlinkException extends Exception {
31+
32+
private static final long serialVersionUID = -5483867987230977680L;
33+
3134
public ForbiddenSymlinkException(String message) { super(message); }
3235
}

opengrok-indexer/src/main/java/org/opengrok/indexer/web/messages/Message.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ public int compareTo(final Message o) {
144144

145145
private static class DurationSerializer extends StdSerializer<Duration> {
146146

147+
private static final long serialVersionUID = 5275434375701446542L;
148+
147149
DurationSerializer() {
148150
this(null);
149151
}
@@ -167,6 +169,7 @@ public void serialize(
167169
}
168170

169171
private static class DurationDeserializer extends StdDeserializer<Duration> {
172+
private static final long serialVersionUID = 5513386447457242809L;
170173

171174
DurationDeserializer() {
172175
this(null);

opengrok-indexer/src/main/java/org/opengrok/indexer/web/messages/MessagesContainer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ public int hashCode() {
280280

281281
private static class InstantSerializer extends StdSerializer<Instant> {
282282

283+
private static final long serialVersionUID = -369908820170764793L;
284+
283285
InstantSerializer() {
284286
this(null);
285287
}

0 commit comments

Comments
 (0)