Browse Source

Remove redundant "static" qualifier from enum declarations

Nested enum types are implicitly static.

Change-Id: Id3d7886087494fb67bc0d080b4a3491fb4baac19
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
tags/v5.7.0.202002241735-m3
David Pursehouse 4 years ago
parent
commit
9be93b7991
32 changed files with 41 additions and 41 deletions
  1. 2
    2
      org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/LfsStore.java
  2. 1
    1
      org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/ShowCommands.java
  3. 1
    1
      org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ConfigTest.java
  4. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/api/CheckoutCommand.java
  5. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/attributes/Attribute.java
  6. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffConfig.java
  7. 2
    2
      org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffEntry.java
  8. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/diff/Edit.java
  9. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/errors/NoMergeBaseException.java
  10. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/ignore/IgnoreNode.java
  11. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/ignore/internal/Strings.java
  12. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/internal/ketch/KetchLeader.java
  13. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsObjDatabase.java
  14. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileObjectDatabase.java
  15. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java
  16. 7
    7
      org.eclipse.jgit/src/org/eclipse/jgit/lib/CoreConfig.java
  17. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/lib/IndexDiff.java
  18. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/lib/RebaseTodoLine.java
  19. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/lib/RefUpdate.java
  20. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/patch/BinaryHunk.java
  21. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/patch/FileHeader.java
  22. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/patch/FormatError.java
  23. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/transport/GitProtocolConstants.java
  24. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/transport/PackParser.java
  25. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/transport/PacketLineIn.java
  26. 2
    2
      org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceiveCommand.java
  27. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/transport/RemoteRefUpdate.java
  28. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportProtocol.java
  29. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java
  30. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/treewalk/TreeWalk.java
  31. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/util/GitDateFormatter.java
  32. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/util/ProcessResult.java

+ 2
- 2
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/LfsStore.java View File

} }
} }


private static enum StoreType {
private enum StoreType {
FS, S3; FS, S3;
} }


private static enum StorageClass {
private enum StorageClass {
REDUCED_REDUNDANCY, STANDARD REDUCED_REDUNDANCY, STANDARD
} }



+ 1
- 1
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/debug/ShowCommands.java View File

errw.println(); errw.println();
} }


static enum Format {
enum Format {
/** */ /** */
USAGE { USAGE {
@Override @Override

+ 1
- 1
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ConfigTest.java View File

assertFalse(c.getBoolean("s", "b", true)); assertFalse(c.getBoolean("s", "b", true));
} }


static enum TestEnum {
enum TestEnum {
ONE_TWO; ONE_TWO;
} }



+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/api/CheckoutCommand.java View File

/** /**
* Stage to check out, see {@link CheckoutCommand#setStage(Stage)}. * Stage to check out, see {@link CheckoutCommand#setStage(Stage)}.
*/ */
public static enum Stage {
public enum Stage {
/** /**
* Base stage (#1) * Base stage (#1)
*/ */

+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/attributes/Attribute.java View File

* The attribute value state * The attribute value state
* see also https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html * see also https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
*/ */
public static enum State {
public enum State {
/** the attribute is set */ /** the attribute is set */
SET, SET,



+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffConfig.java View File

public static final Config.SectionParser<DiffConfig> KEY = DiffConfig::new; public static final Config.SectionParser<DiffConfig> KEY = DiffConfig::new;


/** Permissible values for {@code diff.renames}. */ /** Permissible values for {@code diff.renames}. */
public static enum RenameDetectionType {
public enum RenameDetectionType {
/** Rename detection is disabled. */ /** Rename detection is disabled. */
FALSE, FALSE,



+ 2
- 2
org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffEntry.java View File

public static final String DEV_NULL = "/dev/null"; //$NON-NLS-1$ public static final String DEV_NULL = "/dev/null"; //$NON-NLS-1$


/** General type of change a single file-level patch describes. */ /** General type of change a single file-level patch describes. */
public static enum ChangeType {
public enum ChangeType {
/** Add a new file to the project */ /** Add a new file to the project */
ADD, ADD,


} }


/** Specify the old or new side for more generalized access. */ /** Specify the old or new side for more generalized access. */
public static enum Side {
public enum Side {
/** The old side of a DiffEntry. */ /** The old side of a DiffEntry. */
OLD, OLD,



+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/diff/Edit.java View File

*/ */
public class Edit { public class Edit {
/** Type of edit */ /** Type of edit */
public static enum Type {
public enum Type {
/** Sequence B has inserted the region. */ /** Sequence B has inserted the region. */
INSERT, INSERT,



+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/errors/NoMergeBaseException.java View File

* An enum listing the different reason why no merge base could be * An enum listing the different reason why no merge base could be
* determined. * determined.
*/ */
public static enum MergeBaseFailureReason {
public enum MergeBaseFailureReason {
/** /**
* Multiple merge bases have been found (e.g. the commits to be merged * Multiple merge bases have been found (e.g. the commits to be merged
* have multiple common predecessors) but the merge strategy doesn't * have multiple common predecessors) but the merge strategy doesn't

+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/ignore/IgnoreNode.java View File

*/ */
public class IgnoreNode { public class IgnoreNode {
/** Result from {@link IgnoreNode#isIgnored(String, boolean)}. */ /** Result from {@link IgnoreNode#isIgnored(String, boolean)}. */
public static enum MatchResult {
public enum MatchResult {
/** The file is not ignored, due to a rule saying its not ignored. */ /** The file is not ignored, due to a rule saying its not ignored. */
NOT_IGNORED, NOT_IGNORED,



+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/ignore/internal/Strings.java View File

return PatternState.COMPLEX; return PatternState.COMPLEX;
} }


static enum PatternState {
enum PatternState {
LEADING_ASTERISK_ONLY, TRAILING_ASTERISK_ONLY, COMPLEX, NONE LEADING_ASTERISK_ONLY, TRAILING_ASTERISK_ONLY, COMPLEX, NONE
} }



+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/internal/ketch/KetchLeader.java View File

private static final Logger log = LoggerFactory.getLogger(KetchLeader.class); private static final Logger log = LoggerFactory.getLogger(KetchLeader.class);


/** Current state of the leader instance. */ /** Current state of the leader instance. */
public static enum State {
public enum State {
/** Newly created instance trying to elect itself leader. */ /** Newly created instance trying to elect itself leader. */
CANDIDATE, CANDIDATE,



+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsObjDatabase.java View File

* comparator based on {@link Enum#compareTo}. Prefer {@link * comparator based on {@link Enum#compareTo}. Prefer {@link
* #DEFAULT_COMPARATOR} or your own {@link ComparatorBuilder}. * #DEFAULT_COMPARATOR} or your own {@link ComparatorBuilder}.
*/ */
public static enum PackSource {
public enum PackSource {
/** The pack is created by ObjectInserter due to local activity. */ /** The pack is created by ObjectInserter due to local activity. */
INSERT, INSERT,



+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileObjectDatabase.java View File

import org.eclipse.jgit.util.FS; import org.eclipse.jgit.util.FS;


abstract class FileObjectDatabase extends ObjectDatabase { abstract class FileObjectDatabase extends ObjectDatabase {
static enum InsertLooseObjectResult {
enum InsertLooseObjectResult {
INSERTED, EXISTS_PACKED, EXISTS_LOOSE, FAILURE; INSERTED, EXISTS_PACKED, EXISTS_LOOSE, FAILURE;
} }



+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java View File

} }


/** Possible states that a PackWriter can be in. */ /** Possible states that a PackWriter can be in. */
public static enum PackingPhase {
public enum PackingPhase {
/** Counting objects phase. */ /** Counting objects phase. */
COUNTING, COUNTING,



+ 7
- 7
org.eclipse.jgit/src/org/eclipse/jgit/lib/CoreConfig.java View File

public static final Config.SectionParser<CoreConfig> KEY = CoreConfig::new; public static final Config.SectionParser<CoreConfig> KEY = CoreConfig::new;


/** Permissible values for {@code core.autocrlf}. */ /** Permissible values for {@code core.autocrlf}. */
public static enum AutoCRLF {
public enum AutoCRLF {
/** Automatic CRLF-&gt;LF conversion is disabled. */ /** Automatic CRLF-&gt;LF conversion is disabled. */
FALSE, FALSE,


* *
* @since 4.3 * @since 4.3
*/ */
public static enum EOL {
public enum EOL {
/** Check in with LF, check out with CRLF. */ /** Check in with LF, check out with CRLF. */
CRLF, CRLF,


* *
* @since 4.3 * @since 4.3
*/ */
public static enum EolStreamType {
public enum EolStreamType {
/** Convert to CRLF without binary detection. */ /** Convert to CRLF without binary detection. */
TEXT_CRLF, TEXT_CRLF,


* *
* @since 3.0 * @since 3.0
*/ */
public static enum CheckStat {
public enum CheckStat {
/** /**
* Only check the size and whole second part of time stamp when * Only check the size and whole second part of time stamp when
* comparing the stat info in the dircache with actual file stat info. * comparing the stat info in the dircache with actual file stat info.
* *
* @since 5.6 * @since 5.6
*/ */
public static enum LogRefUpdates {
public enum LogRefUpdates {
/** Don't create ref logs; default for bare repositories. */ /** Don't create ref logs; default for bare repositories. */
FALSE, FALSE,


* *
* @since 3.3 * @since 3.3
*/ */
public static enum SymLinks {
public enum SymLinks {
/** Check out symbolic links as plain files . */ /** Check out symbolic links as plain files . */
FALSE, FALSE,


* *
* @since 3.5 * @since 3.5
*/ */
public static enum HideDotFiles {
public enum HideDotFiles {
/** Do not hide .files. */ /** Do not hide .files. */
FALSE, FALSE,



+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/lib/IndexDiff.java View File

* @see IndexDiff#getConflictingStageStates() * @see IndexDiff#getConflictingStageStates()
* @since 3.0 * @since 3.0
*/ */
public static enum StageState {
public enum StageState {
/** /**
* Exists in base, but neither in ours nor in theirs. * Exists in base, but neither in ours nor in theirs.
*/ */

+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/lib/RebaseTodoLine.java View File

* Describes rebase actions * Describes rebase actions
*/ */
@SuppressWarnings("nls") @SuppressWarnings("nls")
public static enum Action {
public enum Action {
/** Use commit */ /** Use commit */
PICK("pick", "p"), PICK("pick", "p"),



+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/lib/RefUpdate.java View File

* unknown values are failures, and may generally treat them the same as * unknown values are failures, and may generally treat them the same as
* {@link #REJECTED_OTHER_REASON}. * {@link #REJECTED_OTHER_REASON}.
*/ */
public static enum Result {
public enum Result {
/** The ref update/delete has not been attempted by the caller. */ /** The ref update/delete has not been attempted by the caller. */
NOT_ATTEMPTED, NOT_ATTEMPTED,



+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/patch/BinaryHunk.java View File

private static final byte[] DELTA = encodeASCII("delta "); //$NON-NLS-1$ private static final byte[] DELTA = encodeASCII("delta "); //$NON-NLS-1$


/** Type of information stored in a binary hunk. */ /** Type of information stored in a binary hunk. */
public static enum Type {
public enum Type {
/** The full content is stored, deflated. */ /** The full content is stored, deflated. */
LITERAL_DEFLATED, LITERAL_DEFLATED,



+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/patch/FileHeader.java View File

static final byte[] NEW_NAME = encodeASCII("+++ "); //$NON-NLS-1$ static final byte[] NEW_NAME = encodeASCII("+++ "); //$NON-NLS-1$


/** Type of patch used by this file. */ /** Type of patch used by this file. */
public static enum PatchType {
public enum PatchType {
/** A traditional unified diff style patch of a text file. */ /** A traditional unified diff style patch of a text file. */
UNIFIED, UNIFIED,



+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/patch/FormatError.java View File

*/ */
public class FormatError { public class FormatError {
/** Classification of an error. */ /** Classification of an error. */
public static enum Severity {
public enum Severity {
/** The error is unexpected, but can be worked around. */ /** The error is unexpected, but can be worked around. */
WARNING, WARNING,



+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/transport/GitProtocolConstants.java View File

*/ */
public static final String COMMAND_FETCH = "fetch"; //$NON-NLS-1$ public static final String COMMAND_FETCH = "fetch"; //$NON-NLS-1$


static enum MultiAck {
enum MultiAck {
OFF, CONTINUE, DETAILED; OFF, CONTINUE, DETAILED;
} }



+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/transport/PackParser.java View File

private static final int BUFFER_SIZE = 8192; private static final int BUFFER_SIZE = 8192;


/** Location data is being obtained from. */ /** Location data is being obtained from. */
public static enum Source {
public enum Source {
/** Data is read from the incoming stream. */ /** Data is read from the incoming stream. */
INPUT, INPUT,



+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/transport/PacketLineIn.java View File

@Deprecated @Deprecated
public static final String DELIM = new StringBuilder(0).toString(); /* must not string pool */ public static final String DELIM = new StringBuilder(0).toString(); /* must not string pool */


static enum AckNackResult {
enum AckNackResult {
/** NAK */ /** NAK */
NAK, NAK,
/** ACK */ /** ACK */

+ 2
- 2
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceiveCommand.java View File

*/ */
public class ReceiveCommand { public class ReceiveCommand {
/** Type of operation requested. */ /** Type of operation requested. */
public static enum Type {
public enum Type {
/** Create a new ref; the ref must not already exist. */ /** Create a new ref; the ref must not already exist. */
CREATE, CREATE,


} }


/** Result of the update command. */ /** Result of the update command. */
public static enum Result {
public enum Result {
/** The command has not yet been attempted by the server. */ /** The command has not yet been attempted by the server. */
NOT_ATTEMPTED, NOT_ATTEMPTED,



+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/transport/RemoteRefUpdate.java View File

/** /**
* Represent current status of a remote ref update. * Represent current status of a remote ref update.
*/ */
public static enum Status {
public enum Status {
/** /**
* Push process hasn't yet attempted to update this ref. This is the * Push process hasn't yet attempted to update this ref. This is the
* default status, prior to push process execution. * default status, prior to push process execution.

+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportProtocol.java View File

*/ */
public abstract class TransportProtocol { public abstract class TransportProtocol {
/** Fields within a {@link URIish} that a transport uses. */ /** Fields within a {@link URIish} that a transport uses. */
public static enum URIishField {
public enum URIishField {
/** the user field */ /** the user field */
USER, USER,
/** the pass (aka password) field */ /** the pass (aka password) field */

+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java View File

*/ */
public class UploadPack { public class UploadPack {
/** Policy the server uses to validate client requests */ /** Policy the server uses to validate client requests */
public static enum RequestPolicy {
public enum RequestPolicy {
/** Client may only ask for objects the server advertised a reference for. */ /** Client may only ask for objects the server advertised a reference for. */
ADVERTISED, ADVERTISED,



+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/treewalk/TreeWalk.java View File

/** /**
* @since 4.2 * @since 4.2
*/ */
public static enum OperationType {
public enum OperationType {
/** /**
* Represents a checkout operation (for example a checkout or reset * Represents a checkout operation (for example a checkout or reset
* operation). * operation).

+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/util/GitDateFormatter.java View File

/** /**
* Git and JGit formats * Git and JGit formats
*/ */
static public enum Format {
public enum Format {


/** /**
* Git format: Time and original time zone * Git format: Time and original time zone

+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/util/ProcessResult.java View File

/** /**
* Status of a process' execution. * Status of a process' execution.
*/ */
public static enum Status {
public enum Status {
/** /**
* The script was found and launched properly. It may still have exited * The script was found and launched properly. It may still have exited
* with a non-zero {@link #exitCode}. * with a non-zero {@link #exitCode}.

Loading…
Cancel
Save