Skip to content

Commit

Permalink
fix the feature "repair orphan scopes"
Browse files Browse the repository at this point in the history
 - from duplicate orphans scopes
 - from declare Default Scope as an orphan, it's just a Root Scope
  • Loading branch information
rlespinasse authored and tduchateau committed May 24, 2014
1 parent 71a759a commit f9398bb
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -128,9 +128,11 @@ void processAssetsLoading(boolean defaultsNeeded) {
}

private void repairOrphanParentScope() {
List<String> orphans = new ArrayList<String>();
Set<String> orphans = new HashSet<String>();
for(String parentScope:parentScopesByScope.values()) {
if (!ROOT_SCOPE.equalsIgnoreCase(parentScope) && !parentScopesByScope.containsKey(parentScope)) {
if (!ROOT_SCOPE.equalsIgnoreCase(parentScope)
&& !DETACHED_PARENT_SCOPE.equalsIgnoreCase(parentScope)
&& !parentScopesByScope.containsKey(parentScope)) {
orphans.add(parentScope);
}
}
Expand Down

0 comments on commit f9398bb

Please sign in to comment.