FindBugs: Superclass uses subclass during initialization
commitb5cf15023eb564f87b527e116497d3fc7c4d6139
authorMatthias Sohn <matthias.sohn@sap.com>
Mon, 18 May 2009 13:11:58 +0000 (18 15:11 +0200)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 18 May 2009 14:28:25 +0000 (18 07:28 -0700)
treed0c9c4efccec390b12519d09a404419b86a5e5a9
parent46fdb3c88a985a70b4398c44b040cf4d84012e06
FindBugs: Superclass uses subclass during initialization

FindBugs reported the following problem with high priority:
/usr/src/egit/org.spearce.jgit/src/org/spearce/jgit/merge/MergeStrategy.java:58
Initialization of org.spearce.jgit.merge.MergeStrategy accesses class
org.spearce.jgit.merge.StrategySimpleTwoWayInCore, which isn't
initialized yet.

To fix this problem move instantiation from StrategySimpleTwoWayInCore
up to the abstract superclass MergeStrategy.

Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/merge/MergeStrategy.java
org.spearce.jgit/src/org/spearce/jgit/merge/StrategySimpleTwoWayInCore.java