gerrit/gerrit-httpd
Edwin Kempin 128381f984 Refactor: Have only one implementation to resolve parent projects
Often the parent project for a project needs to be resolved. The
parent project can be retrieved from a project by invoking
Project#getParent(). The problem is that this method may return null
for child projects of the wild project. This special case has to be
handled by every caller (if getParent() returns null and it's not the
wild project, the wild project is the parent). Similar code to handle
this situation is repeated in several places.

This change makes one implementation to resolve the parent project
reusable and removes duplicate code.

Change-Id: Id3d8f19c0ea6fc168c2f5dbc15f9e21bc2246d94
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2012-03-22 13:14:30 +01:00
..
.settings Updating eclipse settings for 3.7 and m2e 1.0 2011-07-29 08:29:51 -07:00
src Refactor: Have only one implementation to resolve parent projects 2012-03-22 13:14:30 +01:00
.gitignore Add entries to .gitignore for m2e settings/preference files 2011-12-12 16:56:53 -06:00
pom.xml Update poms to Gerrit 2.3-SNAPSHOT 2012-02-22 17:19:32 -07:00