Bug 94730 [projection] Nondeterministic folding summary
I20050509-2010 With the CU below: - fold the method declaration -> 'bar()' is shown as summary - unfold again - select the method name 'bar' - type 'foo' - fold the method declaration again -> 'void' is shown as summary "interface Bar { void bar(); } "
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/folding/DefaultJavaFoldingStructureProvider.java
if (deletedPosition.getOffset() == changedPosition.getOffset()) {
						deletedPosition.setLength(changedPosition.getLength());
						deleted.setElement(changed.getElement());
						deletionIterator.remove();
						newChanges.add(deleted);
						changesIterator.remove();
						newDeletions.add(changed);
						continue outer;
					}
				}
			}
			Iterator additionsIterator= additions.keySet().iterator();
			while (additionsIterator.hasNext()) {
				JavaProjectionAnnotation added= (JavaProjectionAnnotation) additionsIterator.next();
				if (deleted.isComment() == added.isComment()) {
					Position addedPosition= (Position) additions.get(added);
					if (deletedPosition.getOffset() == addedPosition.getOffset()) {
						deletedPosition.setLength(addedPosition.getLength());
						deleted.setElement(added.getElement());
						deletionIterator.remove();
						newChanges.add(deleted);
						additionsIterator.remove();
						break;
					}
				}
			}
		}
		deletions.addAll(newDeletions);
		changes.addAll(newChanges);
	}