improve changeset viewer

This commit is contained in:
Sebastian Sdorra
2011-04-18 18:01:40 +02:00
parent 270b9cfeaa
commit 2c209e4161
2 changed files with 3 additions and 45 deletions

View File

@@ -164,30 +164,17 @@ public class GitChangesetViewer implements ChangesetViewer
switch (entry.getChangeType())
{
case ADD :
if (modifications.getAdded() == null)
{
modifications.setAdded(new ArrayList<String>());
}
modifications.getAdded().add(entry.getNewPath());
break;
case MODIFY :
if (modifications.getModified() == null)
{
modifications.setModified(new ArrayList<String>());
}
modifications.getModified().add(entry.getNewPath());
break;
case DELETE :
if (modifications.getRemoved() == null)
{
modifications.setRemoved(new ArrayList<String>());
}
modifications.getRemoved().add(entry.getOldPath());
@@ -239,14 +226,6 @@ public class GitChangesetViewer implements ChangesetViewer
if (tag != null)
{
List<String> tagList = changeset.getTags();
if (tagList == null)
{
tagList = new ArrayList<String>();
changeset.setTags(tagList);
}
changeset.getTags().add(tag);
}