Skip to content

Commit

Permalink
supplemental: add javadoc for serialVersionUID fields (checkstyle#10818)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbludov authored and romani committed Sep 25, 2021
1 parent 0b7cfd0 commit 25c3842
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
*/
public final class DefaultConfiguration implements Configuration {

/** A unique serial version identifier. */
private static final long serialVersionUID = 1157875385356127169L;

/** Constant for optimization. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public class ThreadModeSettings implements Serializable {
public static final ThreadModeSettings SINGLE_THREAD_MODE_INSTANCE =
new ThreadModeSettings(1, 1);

/** A unique serial version identifier. */
private static final long serialVersionUID = 1L;

/** The checker threads number. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
public final class Violation
implements Comparable<Violation>, Serializable {

/** A unique serial version identifier. */
private static final long serialVersionUID = 5675176836184862150L;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ private static Pattern getKeyPattern(String keyName) {
*/
private static class SequencedProperties extends Properties {

/** A unique serial version identifier. */
private static final long serialVersionUID = 1L;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ private static Pattern getKeyPattern(String keyName) {
*/
private static class UniqueProperties extends Properties {

/** A unique serial version identifier. */
private static final long serialVersionUID = 1L;
/**
* Map, holding duplicated keys and their count. Keys are added here only if they
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
*/
class ListToTreeSelectionModelWrapper extends DefaultTreeSelectionModel {

/** A unique serial version identifier. */
private static final long serialVersionUID = 2267930983939339510L;
/** TreeTable to perform updates on. */
private final TreeTable treeTable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
*/
public class MainFrame extends JFrame {

/** A unique serial version identifier. */
private static final long serialVersionUID = 7970053543351871890L;

/** Checkstyle frame model. */
Expand Down Expand Up @@ -202,6 +203,7 @@ public void openFile(File sourceFile) {
*/
private class FileSelectionAction extends AbstractAction {

/** A unique serial version identifier. */
private static final long serialVersionUID = 1762396148873280589L;

@Override
Expand All @@ -224,6 +226,7 @@ public void actionPerformed(ActionEvent event) {
*/
private class ReloadAction extends AbstractAction {

/** A unique serial version identifier. */
private static final long serialVersionUID = -890320994114628011L;

@Override
Expand All @@ -238,6 +241,7 @@ public void actionPerformed(ActionEvent event) {
*/
private class ExpandCollapseAction extends AbstractAction {

/** A unique serial version identifier. */
private static final long serialVersionUID = -890320994114628011L;

@Override
Expand All @@ -252,6 +256,7 @@ public void actionPerformed(ActionEvent event) {
*/
private class FindNodeByXpathAction extends AbstractAction {

/** A unique serial version identifier. */
private static final long serialVersionUID = -890320994114628011L;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
*/
public final class TreeTable extends JTable {

/** A unique serial version identifier. */
private static final long serialVersionUID = -8493693409423365387L;
/** A subclass of JTree. */
private final TreeTableCellRenderer tree;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
*/
public class TreeTableModelAdapter extends AbstractTableModel {

/** A unique serial version identifier. */
private static final long serialVersionUID = 8269213416115369275L;

/** JTree component. */
Expand Down

0 comments on commit 25c3842

Please sign in to comment.