View | Details | Raw Unified | Return to bug 160217
Collapse All | Expand All

(-)dom/org/eclipse/jdt/core/dom/rewrite/ASTRewrite.java (-2 / +11 lines)
Lines 437-445 Link Here
437
		if (node == null || property == null) {
437
		if (node == null || property == null) {
438
			throw new IllegalArgumentException();
438
			throw new IllegalArgumentException();
439
		}
439
		}
440
		validateIsListProperty(property);
440
441
		if (node.getAST() != getAST())
442
			throw new IllegalArgumentException();
443
		
444
		List list= node.structuralPropertiesForType();
445
		for (Iterator iterator= list.iterator(); iterator.hasNext();) {
446
	        StructuralPropertyDescriptor desc= (StructuralPropertyDescriptor)iterator.next();
447
	        if (desc.equals(property))
448
	        	return new ListRewrite(this, node, property); 
449
        }
441
		
450
		
442
		return new ListRewrite(this, node, property);
451
		throw new IllegalArgumentException(); 
443
	}
452
	}
444
		
453
		
445
	/**
454
	/**

Return to bug 160217