diff options
author | Ivan Frade <ifrade@google.com> | 2018-11-15 21:27:20 -0800 |
---|---|---|
committer | Ivan Frade <ifrade@google.com> | 2018-11-15 22:36:43 -0800 |
commit | d9ac7ddf1026123fee6c4477d172d614522dfc08 (patch) | |
tree | 031a110e54fc1158523fe8971443f8a4d9ba6df2 /org.eclipse.jgit/src/org/eclipse/jgit/lib/CheckoutEntry.java | |
parent | c56afbf18cb14402705a56ca6a2dff6441208cd3 (diff) | |
download | jgit-d9ac7ddf1026123fee6c4477d172d614522dfc08.tar.gz jgit-d9ac7ddf1026123fee6c4477d172d614522dfc08.zip |
Remove unnecessary modifiers from interfaces
From Oracle's "Defining an interface":
"All abstract, default, and static methods in an interface are
implicitly public, so you can omit the public modifier."
(Without any modifier, the interface methods are also abstract, so we
omit also the "abstract")
"In addition, an interface can contain constant declarations. All
constant values defined in an interface are implicitly public, static,
and final. Once again, you can omit these modifiers."
This makes the code more consistent. Now all interfaces under
org.eclipse.jgit follow the guidelines.
Change-Id: I4fe6deb111899ec1b4318ab5a6050f3851fa1fd3
Signed-off-by: Ivan Frade <ifrade@google.com>
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/lib/CheckoutEntry.java')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/lib/CheckoutEntry.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/CheckoutEntry.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/CheckoutEntry.java index cfc0cc86d1..84ff0a8936 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/CheckoutEntry.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/CheckoutEntry.java @@ -12,13 +12,13 @@ public interface CheckoutEntry { * * @return the name of the branch before checkout */ - public abstract String getFromBranch(); + String getFromBranch(); /** * Get the name of the branch after checkout * * @return the name of the branch after checkout */ - public abstract String getToBranch(); + String getToBranch(); } |