From 0e12692d8cff234525a889bbf540a8d2504dfb46 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Fri, 25 Aug 2017 17:03:28 +0900 Subject: [PATCH] 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 --- org.eclipse.jgit/src/org/eclipse/jgit/lib/FileMode.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/FileMode.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/FileMode.java index a489461f8..edbc709f4 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/FileMode.java +++ b/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; /** Mode indicating an entry is a tree (aka directory). */ - @SuppressWarnings("synthetic-access") public static final FileMode TREE = new FileMode(TYPE_TREE, Constants.OBJ_TREE) { @Override @@ -93,7 +92,6 @@ public boolean equals(final int modeBits) { }; /** Mode indicating an entry is a symbolic link. */ - @SuppressWarnings("synthetic-access") public static final FileMode SYMLINK = new FileMode(TYPE_SYMLINK, Constants.OBJ_BLOB) { @Override @@ -103,7 +101,6 @@ public boolean equals(final int modeBits) { }; /** Mode indicating an entry is a non-executable file. */ - @SuppressWarnings("synthetic-access") public static final FileMode REGULAR_FILE = new FileMode(0100644, Constants.OBJ_BLOB) { @Override @@ -113,7 +110,6 @@ public boolean equals(final int modeBits) { }; /** Mode indicating an entry is an executable file. */ - @SuppressWarnings("synthetic-access") public static final FileMode EXECUTABLE_FILE = new FileMode(0100755, Constants.OBJ_BLOB) { @Override @@ -123,7 +119,6 @@ public boolean equals(final int modeBits) { }; /** Mode indicating an entry is a submodule commit in another repository. */ - @SuppressWarnings("synthetic-access") public static final FileMode GITLINK = new FileMode(TYPE_GITLINK, Constants.OBJ_COMMIT) { @Override @@ -133,7 +128,6 @@ public boolean equals(final int modeBits) { }; /** Mode indicating an entry is missing during parallel walks. */ - @SuppressWarnings("synthetic-access") public static final FileMode MISSING = new FileMode(TYPE_MISSING, Constants.OBJ_BAD) { @Override