Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 244457
Collapse All | Expand All

(-)src/org/eclipse/mylyn/internal/sandbox/ui/editors/CommentGroupStrategy.java (-2 / +2 lines)
Lines 60-66 Link Here
60
		List<CommentGroup> commentGroups = new ArrayList<CommentGroup>();
60
		List<CommentGroup> commentGroups = new ArrayList<CommentGroup>();
61
		List<TaskAttribute> comments = new ArrayList<TaskAttribute>();
61
		List<TaskAttribute> comments = new ArrayList<TaskAttribute>();
62
62
63
		int recentFromIndex = 0, currentFromIndex = 0;
63
		int recentFromIndex = -1, currentFromIndex = -1;
64
		String currentPersonId = taskDataModel.getTaskRepository().getUserName();
64
		String currentPersonId = taskDataModel.getTaskRepository().getUserName();
65
65
66
		// current
66
		// current
Lines 88-94 Link Here
88
		}
88
		}
89
89
90
		// group by last author
90
		// group by last author
91
		if (currentFromIndex < comments.size()) {
91
		if (currentFromIndex != -1 && currentFromIndex < comments.size()) {
92
			current.addAll(0, new ArrayList<TaskAttribute>(comments.subList(currentFromIndex, comments.size())));
92
			current.addAll(0, new ArrayList<TaskAttribute>(comments.subList(currentFromIndex, comments.size())));
93
			if (current.size() > 0) {
93
			if (current.size() > 0) {
94
				comments.removeAll(current);
94
				comments.removeAll(current);

Return to bug 244457