Skip to content

Commit c8a9ebd

Browse files
author
Vladimir Kotal
committed
add serialVersionUID to silence lint
1 parent 0ed2779 commit c8a9ebd

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/history/GitRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public class GitRepository extends Repository {
5757

5858
private static final Logger LOGGER = LoggerFactory.getLogger(GitRepository.class);
5959

60-
private static final long serialVersionUID = 1L;
60+
private static final long serialVersionUID = -6126297612958508386L;
6161
/**
6262
* The property name used to obtain the client command for this repository.
6363
*/

opengrok-indexer/src/main/java/org/opengrok/indexer/history/Repository.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
*/
5151
public abstract class Repository extends RepositoryInfo {
5252

53+
private static final long serialVersionUID = -203179700904894217L;
54+
5355
private static final Logger LOGGER = LoggerFactory.getLogger(Repository.class);
5456

5557
/**
@@ -548,6 +550,8 @@ protected String getRepoRelativePath(final File file)
548550
}
549551

550552
private class RepositoryDateFormat extends DateFormat {
553+
private static final long serialVersionUID = -6951382723884436414L;
554+
551555
private final Locale locale = Locale.ENGLISH;
552556
// NOTE: SimpleDateFormat is not thread-safe, lock must be held when used
553557
private final SimpleDateFormat[] formatters = new SimpleDateFormat[datePatterns.length];

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ public DataParser(Class cls, Function<String,Object> converter) {
114114
private String epilogue; // text emitted after options summary
115115

116116
class DuplicateOptionName extends Exception {
117+
private static final long serialVersionUID = -2807551057713512315L;
118+
117119
public DuplicateOptionName(String message) {
118120
super(message);
119121
}

opengrok-indexer/src/test/java/org/opengrok/indexer/history/RepositoryTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ public void testMultipleInvalidDateFormats() {
140140
}
141141

142142
private class RepositoryImplementation extends Repository {
143+
private static final long serialVersionUID = 1686223058901603237L;
143144

144145
@Override
145146
public boolean fileHasHistory(File file) {

0 commit comments

Comments
 (0)