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 351713
Collapse All | Expand All

(-)a/bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/corext/refactoring/structure/ChangeSignatureRefactoring.java (-3 / +2 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2009 IBM Corporation and others.
2
 * Copyright (c) 2000, 2013 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 485-491 public class ChangeSignatureRefactoring extends ScriptableRefactoring implements Link Here
485
			result.addFatalError(msg);
485
			result.addFatalError(msg);
486
			return;
486
			return;
487
		}
487
		}
488
		if (fMethodName.equals(fMethod.getDeclaringType().getElementName())) {
488
		if (fMethod.getDeclaringType() != null && fMethodName.equals(fMethod.getDeclaringType().getElementName())) {
489
			String msg= RefactoringCoreMessages.ChangeSignatureRefactoring_constructor_name; 
489
			String msg= RefactoringCoreMessages.ChangeSignatureRefactoring_constructor_name; 
490
			result.addWarning(msg);
490
			result.addWarning(msg);
491
		}
491
		}
492
- 

Return to bug 351713