Skip to content

Commit

Permalink
Fixed broken code
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed May 22, 2013
1 parent 275bc8d commit 3e87806
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ public String convert(ProjectType source)

// Add Project types
List<ProjectType> projectTypes = new ArrayList<ProjectType>();
for (ProjectType projectType : type.getValueChoices())
{
projectTypes.add(projectType);
}
Collections.sort(projectTypes, new Comparator<ProjectType>()
{
@Override
Expand All @@ -129,7 +133,7 @@ public int compare(ProjectType left, ProjectType right)
return left.getType().compareTo(right.getType());
}
});
if(!projectTypes.isEmpty())
if (!projectTypes.isEmpty())
{
type.setDefaultValue(projectTypes.get(0));
}
Expand Down

0 comments on commit 3e87806

Please sign in to comment.