aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@gmail.com>2018-05-22 09:47:16 +0900
committerDavid Pursehouse <david.pursehouse@gmail.com>2018-05-22 10:21:42 +0900
commite701c59a859e8fff46a1bc16aee7771a3a8aea8a (patch)
tree9461f2ae6d0c36430762c543561de1ec480bbbe2 /org.eclipse.jgit
parentd7deda98d0a18ca1e3a1fbb70acf8e7cbcf25833 (diff)
downloadjgit-e701c59a859e8fff46a1bc16aee7771a3a8aea8a.tar.gz
jgit-e701c59a859e8fff46a1bc16aee7771a3a8aea8a.zip
Repository: Make #exactRef and #findRef final
This means less cognitive overhead for both implementors and callers, since this way we can guarantee that they are always synonyms for RefDatabase#exactRef and RefDatabase#findRef, respectively. Change-Id: Ic8aeb52fc7ed65672f3f6cd1da39a66908d88baa Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
index 2d34736111..5fb4e40084 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
@@ -1067,7 +1067,7 @@ public abstract class Repository implements AutoCloseable {
* @since 4.2
*/
@Nullable
- public Ref exactRef(String name) throws IOException {
+ public final Ref exactRef(String name) throws IOException {
return getRefDatabase().exactRef(name);
}
@@ -1083,7 +1083,7 @@ public abstract class Repository implements AutoCloseable {
* @since 4.2
*/
@Nullable
- public Ref findRef(String name) throws IOException {
+ public final Ref findRef(String name) throws IOException {
return getRefDatabase().getRef(name);
}