Bug 60297 [navigation] Find Occurrences: declaration of method parameter is write-access
Find Occurrences: declaration of method parameter is write-access (methods, constructors, anonymous class creation expr, ...). Currently, those are flagged as read-access.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/OccurrencesFinder.java
/*
	 * @see org.eclipse.jdt.internal.ui.search.IOccurrencesFinder#getOccurrenceMatches(org.eclipse.jdt.core.IJavaElement, org.eclipse.jface.text.IDocument)
	 */
	public Match[] getOccurrenceMatches(IJavaElement element, IDocument document) {
		boolean isVariable= fTarget instanceof IVariableBinding;
		ArrayList matches= new ArrayList(fUsages.size());
		HashMap lineToGroup= new HashMap();
		
		for (Iterator iter= fUsages.iterator(); iter.hasNext();) {
			ASTNode node= (ASTNode) iter.next();
			int startPosition= node.getStartPosition();
			int length= node.getLength();
			try {
				boolean isWriteAccess= fWriteUsages.contains(node);
				int line= document.getLineOfOffset(startPosition);
				Integer lineInteger= new Integer(line);
				OccurrencesGroupKey groupKey= (OccurrencesGroupKey) lineToGroup.get(lineInteger);
				if (groupKey == null) {
					IRegion region= document.getLineInformation(line);
					String lineContents= document.get(region.getOffset(), region.getLength()).trim();
					groupKey= new OccurrencesGroupKey(element, line, lineContents, isWriteAccess, isVariable);
					lineToGroup.put(lineInteger, groupKey);
				} else if (isWriteAccess) {
					
					groupKey.setWriteAccess(true);
				}
				Match match= new Match(groupKey, startPosition, length);
				matches.add(match);
			} catch (BadLocationException e) {