]> source.dussan.org Git - jgit.git/commit
PackIndex: Make #getOffset protected to allow out-of-package subclasses 61/1193961/1
authorIvan Frade <ifrade@google.com>
Fri, 26 Apr 2024 21:04:08 +0000 (14:04 -0700)
committerIvan Frade <ifrade@google.com>
Fri, 26 Apr 2024 21:04:08 +0000 (14:04 -0700)
commit1ed38b81be368465f86c0f02113a5ec06d3cac96
treee7b5ae0746c80026103d6f13d599925ab05f6e79
parent567315af548017cc58eadb91bba493b74c391009
PackIndex: Make #getOffset protected to allow out-of-package subclasses

PackIndex#getOffset is abstract and package-private, limiting
subclasses to the same package. Given than the class and all other
relevant methods are public, this looks like an oversight and it
should be ok to write subclasses in other packages.

Make the method protected, allowing to write PackIndex subclasses in
other packages.

Change-Id: I7d3762b0a6c0681c29bd827bbaf094f1ee4583d2
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackIndex.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackIndexV1.java