Browse Source

FileMode: Remove unnecessary @SuppressWarnings("synthetic-access")

In Eclipse Oxygen, the following warning is emitted:

  At least one of the problems in category 'synthetic-access' is not
  analysed due to a compiler option being ignored

Removing the suppression gets rid of the warning.

Change-Id: Ibfe5cc1e347150b699f54e2f204ab5ee770da202
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
stable-4.9
David Pursehouse 7 years ago
parent
commit
0e12692d8c
  1. 6
      org.eclipse.jgit/src/org/eclipse/jgit/lib/FileMode.java

6
org.eclipse.jgit/src/org/eclipse/jgit/lib/FileMode.java

@ -83,7 +83,6 @@ public abstract class FileMode {
public static final int TYPE_MISSING = 0000000; public static final int TYPE_MISSING = 0000000;
/** Mode indicating an entry is a tree (aka directory). */ /** Mode indicating an entry is a tree (aka directory). */
@SuppressWarnings("synthetic-access")
public static final FileMode TREE = new FileMode(TYPE_TREE, public static final FileMode TREE = new FileMode(TYPE_TREE,
Constants.OBJ_TREE) { Constants.OBJ_TREE) {
@Override @Override
@ -93,7 +92,6 @@ public abstract class FileMode {
}; };
/** Mode indicating an entry is a symbolic link. */ /** Mode indicating an entry is a symbolic link. */
@SuppressWarnings("synthetic-access")
public static final FileMode SYMLINK = new FileMode(TYPE_SYMLINK, public static final FileMode SYMLINK = new FileMode(TYPE_SYMLINK,
Constants.OBJ_BLOB) { Constants.OBJ_BLOB) {
@Override @Override
@ -103,7 +101,6 @@ public abstract class FileMode {
}; };
/** Mode indicating an entry is a non-executable file. */ /** Mode indicating an entry is a non-executable file. */
@SuppressWarnings("synthetic-access")
public static final FileMode REGULAR_FILE = new FileMode(0100644, public static final FileMode REGULAR_FILE = new FileMode(0100644,
Constants.OBJ_BLOB) { Constants.OBJ_BLOB) {
@Override @Override
@ -113,7 +110,6 @@ public abstract class FileMode {
}; };
/** Mode indicating an entry is an executable file. */ /** Mode indicating an entry is an executable file. */
@SuppressWarnings("synthetic-access")
public static final FileMode EXECUTABLE_FILE = new FileMode(0100755, public static final FileMode EXECUTABLE_FILE = new FileMode(0100755,
Constants.OBJ_BLOB) { Constants.OBJ_BLOB) {
@Override @Override
@ -123,7 +119,6 @@ public abstract class FileMode {
}; };
/** Mode indicating an entry is a submodule commit in another repository. */ /** Mode indicating an entry is a submodule commit in another repository. */
@SuppressWarnings("synthetic-access")
public static final FileMode GITLINK = new FileMode(TYPE_GITLINK, public static final FileMode GITLINK = new FileMode(TYPE_GITLINK,
Constants.OBJ_COMMIT) { Constants.OBJ_COMMIT) {
@Override @Override
@ -133,7 +128,6 @@ public abstract class FileMode {
}; };
/** Mode indicating an entry is missing during parallel walks. */ /** Mode indicating an entry is missing during parallel walks. */
@SuppressWarnings("synthetic-access")
public static final FileMode MISSING = new FileMode(TYPE_MISSING, public static final FileMode MISSING = new FileMode(TYPE_MISSING,
Constants.OBJ_BAD) { Constants.OBJ_BAD) {
@Override @Override

Loading…
Cancel
Save