summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Pearce <sop@google.com>2013-04-10 21:19:46 -0700
committerShawn Pearce <sop@google.com>2013-04-10 21:20:24 -0700
commit4db695c1c6c47b540a2971470768ca024c0dd54b (patch)
tree69336da008d34b4ae324777db797e61b55cb07c2
parentb5cbfa0146051568673c50e8efba90d782963856 (diff)
downloadjgit-4db695c1c6c47b540a2971470768ca024c0dd54b.tar.gz
jgit-4db695c1c6c47b540a2971470768ca024c0dd54b.zip
Mark DeltaWindowEntry methods final
This class and all of its methods are only package visible. Clarify the methods as final for the benefit of the JIT to inline trivial code. Change-Id: I078841f9900dbf299fbe6abf2599f0208ae96856
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/DeltaWindowEntry.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/DeltaWindowEntry.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/DeltaWindowEntry.java
index 7d29fd8769..0b8c7ab817 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/DeltaWindowEntry.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/DeltaWindowEntry.java
@@ -43,7 +43,7 @@
package org.eclipse.jgit.internal.storage.pack;
-class DeltaWindowEntry {
+final class DeltaWindowEntry {
ObjectToPack object;
/** Complete contents of this object. Lazily loaded. */
@@ -52,29 +52,29 @@ class DeltaWindowEntry {
/** Index of this object's content, to encode other deltas. Lazily loaded. */
DeltaIndex index;
- void set(ObjectToPack object) {
+ final void set(ObjectToPack object) {
this.object = object;
this.index = null;
this.buffer = null;
}
/** @return current delta chain depth of this object. */
- int depth() {
+ final int depth() {
return object.getDeltaDepth();
}
/** @return type of the object in this window entry. */
- int type() {
+ final int type() {
return object.getType();
}
/** @return estimated unpacked size of the object, in bytes . */
- int size() {
+ final int size() {
return object.getWeight();
}
/** @return true if there is no object stored in this entry. */
- boolean empty() {
+ final boolean empty() {
return object == null;
}
}