]> source.dussan.org Git - jgit.git/commit
Declare critical exposed methods of ObjectToPack final 53/11653/1
authorShawn Pearce <spearce@spearce.org>
Thu, 4 Apr 2013 18:17:07 +0000 (11:17 -0700)
committerShawn Pearce <spearce@spearce.org>
Thu, 4 Apr 2013 18:18:41 +0000 (11:18 -0700)
commitd45277a6912e436590cec7373f982d7673306a42
tree28d278b90d286882f3ced6f94066e4e063139b69
parent1d362e35bc5b13632b6a8e72fc02894604b5534c
Declare critical exposed methods of ObjectToPack final

There is no reasonable way for a subclass to correctly override and
implement these methods. They depend on internal state that cannot
otherwise be managed.

Most of these methods are also in critical paths of PackWriter.
Declare them final so subclasses do not try to replace them,
and so the JIT knows the smaller ones can be safely inlined.

Change-Id: I9026938e5833ac0b94246d21c69a143a9224626c
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/ObjectToPack.java