Fix for Bug 338840 - [ui] adapt to generified jdt.ui
diff --git a/plugins/org.eclipse.objectteams.otdt.refactoring/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.objectteams.otdt.refactoring/.settings/org.eclipse.jdt.core.prefs
index 247b4b7..667487f 100644
--- a/plugins/org.eclipse.objectteams.otdt.refactoring/.settings/org.eclipse.jdt.core.prefs
+++ b/plugins/org.eclipse.objectteams.otdt.refactoring/.settings/org.eclipse.jdt.core.prefs
@@ -1,4 +1,4 @@
-#Tue Mar 01 14:47:11 CET 2011
+#Thu Mar 03 19:37:52 CET 2011
 eclipse.preferences.version=1
 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
 org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
@@ -61,7 +61,7 @@
 org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
 org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
 org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
-org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
+org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning
 org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
 org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
 org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
diff --git a/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/adaptor/CorextAdaptor.java b/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/adaptor/CorextAdaptor.java
index d90046b..58c5a06 100644
--- a/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/adaptor/CorextAdaptor.java
+++ b/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/adaptor/CorextAdaptor.java
@@ -149,8 +149,7 @@
 		ASTNode getDestination() -> get ASTNode fDestination;
 		String getMethodName() -> String getMethodName();
 		
-		@SuppressWarnings({ "unchecked", "rawtypes" })
-		List<ParameterInfo> getParameterInfos() -> List getParameterInfos();
+		List<ParameterInfo> getParameterInfos() -> List<ParameterInfo> getParameterInfos();
 	}
 	
 	protected class RefactoringScopeFactory playedBy RefactoringScopeFactory {
@@ -184,7 +183,7 @@
 		boolean isSelected(ASTNode node) -> boolean isSelected(ASTNode node);
 				
 		boolean visit(BaseCallMessageSend node) <- replace boolean visit(BaseCallMessageSend node);
-	    @SuppressWarnings({ "basecall", "unchecked" }) // unchecked: List getBaseMappingElements()
+	    @SuppressWarnings("basecall")
 		callin boolean visit(BaseCallMessageSend node) 
 	    {
 			if (!isSelected(node))
diff --git a/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/adaptor/RenameAdaptor.java b/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/adaptor/RenameAdaptor.java
index 9999a0e..3877e9a 100644
--- a/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/adaptor/RenameAdaptor.java
+++ b/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/adaptor/RenameAdaptor.java
@@ -255,8 +255,7 @@
 	  
 		IMethod getOriginalMethod()  	  -> IMethod getOriginalMethod();
 		String  getNewElementName()       -> String  getNewElementName();
-		@SuppressWarnings({ "unchecked", "rawtypes" })
-		Set<IMethod> getMethodsToRename() -> Set     getMethodsToRename();
+		Set<IMethod> getMethodsToRename() -> Set<IMethod> getMethodsToRename();
 		IMethod getMethod() 		      -> IMethod getMethod();
 	}
 	
diff --git a/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/adaptor/RenameTypeAdaptor.java b/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/adaptor/RenameTypeAdaptor.java
index 0ce4943..af5133f 100644
--- a/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/adaptor/RenameTypeAdaptor.java
+++ b/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/adaptor/RenameTypeAdaptor.java
@@ -75,27 +75,31 @@
 		private JavaModelException fCachedException;

 		

 		// ======= callouts =======

-		LinkedHashMap getFPreloadedElementToName() -> get LinkedHashMap fPreloadedElementToName;

-		void setFPreloadedElementToName(LinkedHashMap preloadedElementToName) -> set LinkedHashMap fPreloadedElementToName;

-		IType getFType() -> get IType fType;

-		void setFType(IType type) -> set IType fType;

-		String getNewElementLabel() -> String getNewElementLabel();

-		TextChangeManager getFChangeManager() -> get TextChangeManager fChangeManager;

-		SearchResultGroup[]  getFReferences() -> get SearchResultGroup[]  fReferences;

-		void setFReferences(SearchResultGroup[] fReferences) -> set SearchResultGroup[]  fReferences;

-		String getNewElementName() -> String getNewElementName();	

-		boolean getUpdateSimilarDeclarations() -> boolean getUpdateSimilarDeclarations();

-		int getFRenamingStrategy() -> get int fRenamingStrategy;

-		int getFCachedRenamingStrategy() -> get int fCachedRenamingStrategy;

-		boolean getFCachedRenameSimilarElements() -> get boolean fCachedRenameSimilarElements;

-		RefactoringStatus getFCachedRefactoringStatus() -> get RefactoringStatus fCachedRefactoringStatus;

-		String getFCachedNewName() -> get String fCachedNewName;

-		void setFPreloadedElementToNameDefault(LinkedHashMap fPreloadedElementToNameDefault) -> set LinkedHashMap fPreloadedElementToNameDefault;

-		LinkedHashMap getFPreloadedElementToNameDefault() -> get LinkedHashMap fPreloadedElementToNameDefault;

-		void setFPreloadedElementToSelection(Map fPreloadedElementToSelection) -> set Map fPreloadedElementToSelection;

-		Map getFPreloadedElementToSelection() -> get Map fPreloadedElementToSelection;

-		void setFFinalSimilarElementToName(Map fFinalSimilarElementToName) -> set Map fFinalSimilarElementToName;

-		Map getFFinalSimilarElementToName() -> get Map fFinalSimilarElementToName;

+		LinkedHashMap<IJavaElement,String>  getFPreloadedElementToName() 		-> get LinkedHashMap<IJavaElement,String>  fPreloadedElementToName;

+		void setFPreloadedElementToName(LinkedHashMap<IJavaElement,String>  preloadedElementToName)

+																				-> set LinkedHashMap<IJavaElement,String>  fPreloadedElementToName;

+		IType getFType() 														-> get IType fType;

+		void setFType(IType type) 												-> set IType fType;

+		String getNewElementLabel() 											-> String getNewElementLabel();

+		TextChangeManager getFChangeManager() 									-> get TextChangeManager fChangeManager;

+		SearchResultGroup[]  getFReferences() 									-> get SearchResultGroup[]  fReferences;

+		void setFReferences(SearchResultGroup[] fReferences) 					-> set SearchResultGroup[]  fReferences;

+		String getNewElementName() 												-> String getNewElementName();

+		boolean getUpdateSimilarDeclarations() 									-> boolean getUpdateSimilarDeclarations();

+		int getFRenamingStrategy() 												-> get int fRenamingStrategy;

+		int getFCachedRenamingStrategy() 										-> get int fCachedRenamingStrategy;

+		boolean getFCachedRenameSimilarElements() 								-> get boolean fCachedRenameSimilarElements;

+		RefactoringStatus getFCachedRefactoringStatus() 						-> get RefactoringStatus fCachedRefactoringStatus;

+		String getFCachedNewName() 												-> get String fCachedNewName;

+		void setFPreloadedElementToNameDefault(LinkedHashMap<IJavaElement,String> fPreloadedElementToNameDefault)

+																				-> set LinkedHashMap<IJavaElement,String> fPreloadedElementToNameDefault;

+		LinkedHashMap getFPreloadedElementToNameDefault() 						-> get LinkedHashMap fPreloadedElementToNameDefault;

+		void setFPreloadedElementToSelection(Map<IJavaElement,Boolean> fPreloadedElementToSelection)

+																				-> set Map<IJavaElement,Boolean> fPreloadedElementToSelection;

+		Map getFPreloadedElementToSelection() 									-> get Map fPreloadedElementToSelection;

+		void setFFinalSimilarElementToName(Map<IJavaElement,String> fFinalSimilarElementToName)

+																				-> set Map<IJavaElement,String> fFinalSimilarElementToName;

+		Map getFFinalSimilarElementToName() 									-> get Map fFinalSimilarElementToName;

 		

 		

 		callin RefactoringStatus doCheckFinalConditions(IProgressMonitor pm, CheckConditionsContext context) throws CoreException{

@@ -679,7 +683,7 @@
 				ArrayList<IType> roles = new ArrayList<IType>();

 				roles.addAll(Arrays.asList(TypeHelper.getAllRoleTypes(enclosingTeam)));

 				for (Iterator<IType> iterator = roles.iterator(); iterator.hasNext();) {

-					IType roleType = (IType) iterator.next();

+					IType roleType = iterator.next();

 					result.addAll(Arrays.asList(getAllRoles(roleType)));

 				}

 				result.addAll(roles);

diff --git a/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/adaptor/pullup/PullUpAdaptor.java b/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/adaptor/pullup/PullUpAdaptor.java
index 6db94b8..ab73a61 100644
--- a/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/adaptor/pullup/PullUpAdaptor.java
+++ b/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/adaptor/pullup/PullUpAdaptor.java
@@ -56,19 +56,20 @@
 

 	public class PullUpRefactoringProcessorRole playedBy PullUpRefactoringProcessor {

 		

-		@SuppressWarnings("rawtypes")

-		void setFCachedSkippedSuperTypes(Set fCachedSkippedSuperTypes) -> set Set fCachedSkippedSuperTypes;

-		@SuppressWarnings("rawtypes")

-		Set getFCachedSkippedSuperTypes() -> get Set fCachedSkippedSuperTypes;

-		IMember[] getMembersToDelete(IProgressMonitor monitor) -> IMember[] getMembersToDelete(IProgressMonitor monitor);

-		IMethod[] getFDeletedMethods() -> get IMethod[] fDeletedMethods;

-		IMember[] getFMembersToMove() -> get IMember[] fMembersToMove;

+		// callouts (fields):

+		void setFCachedSkippedSuperTypes(Set<IType> fCachedSkippedSuperTypes) 

+																-> set Set<IType> fCachedSkippedSuperTypes;

+		Set<IType> getFCachedSkippedSuperTypes() 				-> get Set<IType> fCachedSkippedSuperTypes;

+		IMember[] getMembersToDelete(IProgressMonitor monitor) 	-> IMember[] getMembersToDelete(IProgressMonitor monitor);

+		IMethod[] getFDeletedMethods() 							-> get IMethod[] fDeletedMethods;

+		IMember[] getFMembersToMove() 							-> get IMember[] fMembersToMove;

 

-		// callouts

-		IType getDestinationType() -> IType getDestinationType();

-		IMember[] getMembersToMove() -> IMember[] getMembersToMove();

-		IType getDeclaringType() -> IType getDeclaringType();

-		ITypeHierarchy getDestinationTypeHierarchy(IProgressMonitor pm) -> ITypeHierarchy getDestinationTypeHierarchy(IProgressMonitor pm);

+		// callouts (methods):

+		IType getDestinationType() 								-> IType getDestinationType();

+		IMember[] getMembersToMove() 							-> IMember[] getMembersToMove();

+		IType getDeclaringType() 								-> IType getDeclaringType();

+		ITypeHierarchy getDestinationTypeHierarchy(IProgressMonitor pm)

+																-> ITypeHierarchy getDestinationTypeHierarchy(IProgressMonitor pm);

 		

 		private void checkFinalConditions(IProgressMonitor pm, CheckConditionsContext context, RefactoringStatus status) throws CoreException {

 			

diff --git a/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/otrefactorings/extractcallin/ExtractCallinRefactoring.java b/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/otrefactorings/extractcallin/ExtractCallinRefactoring.java
index 16c48c7..58b0077 100644
--- a/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/otrefactorings/extractcallin/ExtractCallinRefactoring.java
+++ b/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/otrefactorings/extractcallin/ExtractCallinRefactoring.java
@@ -312,7 +312,6 @@
 		return OTRefactoringMessages.ExtractCallin_extractCallin_name;

 	}

 	

-	@SuppressWarnings("unchecked")

 	private void extractCallin() throws CoreException {

 		fBaseRewrite = ASTRewrite.create(fBaseAST);

 		fRoleRewrite = ASTRewrite.create(fRoleAST);

@@ -399,7 +398,6 @@
 		}

 	}

 	

-	@SuppressWarnings("unchecked")

 	private MethodDeclaration extractCallinMethod() throws JavaModelException {

 		// copy the extracted callin to the role

 		MethodDeclaration extractedCallinMethodDeclaration = RefactoringUtil.methodToDeclaration(fExtractedBaseMethod, fRootBase);

@@ -455,7 +453,6 @@
 		fRoleRewrite.getListRewrite(declaration, descriptor).insertLast(callinMapping, null);

 	}

 

-	@SuppressWarnings("unchecked")

 	private CallinMappingDeclaration createMethodMapping() throws JavaModelException {

 		CallinMappingDeclaration mapping = fRoleAST.newCallinMappingDeclaration();

 

@@ -529,7 +526,6 @@
 		return fRoleAST.newMethodBindingOperator(keyword, MethodBindingOperator.KIND_CALLIN);

 	}

 

-	@SuppressWarnings("unchecked")

 	private void addCallinModifier(ASTRewrite astRewrite, MethodDeclaration methodDeclaration) {

 		Modifier callinModifier = fRoleAST.newModifier(ModifierKeyword.CALLIN_KEYWORD);

 

@@ -567,7 +563,6 @@
 	 * @param methodDeclaration

 	 *            the method declaration to be changed

 	 */

-	@SuppressWarnings("unchecked")

 	private void changeToPrivateVisibility(ASTRewrite astRewrite, MethodDeclaration methodDeclaration) {

 		Modifier privateVisibility = methodDeclaration.getAST().newModifier(ModifierKeyword.PRIVATE_KEYWORD);

 		

@@ -595,7 +590,6 @@
 		astRewrite.getListRewrite(methodDeclaration, MethodDeclaration.MODIFIERS2_PROPERTY).insertFirst(privateVisibility, null);

 	}

 	

-	@SuppressWarnings("unchecked")

 	private void copyInvocationParameters(BaseCallMessageSend baseCall, IMethod method) throws JavaModelException {

 		String[] names = method.getParameterNames();

 		for (String element : names)

@@ -615,7 +609,6 @@
 	 *            the offset to begin to copy

 	 * @throws JavaModelException

 	 */

-	@SuppressWarnings("unchecked")

 	private void appendInvocationParameters(BaseCallMessageSend baseCall, IMethod method, int offset) throws JavaModelException {

 		String[] names = method.getParameterNames();

 

@@ -704,7 +697,6 @@
 		return false;

 	}

 

-	@SuppressWarnings("unchecked")

 	public boolean isExtractBeforeAvailable() {

 		List<Statement> statements = fBaseMethodDeclaration.getBody().statements();

 		if (statements.isEmpty()) {

@@ -726,7 +718,6 @@
 		return false;

 	}

 	

-	@SuppressWarnings("unchecked")

 	public boolean isExtractAfterAvailable() {

 		List<Statement> statements = fBaseMethodDeclaration.getBody().statements();

 		if (statements.isEmpty()) {

diff --git a/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/otrefactorings/inlinecallin/InlineCallinRefactoring.java b/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/otrefactorings/inlinecallin/InlineCallinRefactoring.java
index 8a972d0..4d896c7 100644
--- a/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/otrefactorings/inlinecallin/InlineCallinRefactoring.java
+++ b/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/otrefactorings/inlinecallin/InlineCallinRefactoring.java
@@ -480,7 +480,6 @@
 		return change;

 	}

 

-	@SuppressWarnings("unchecked")

 	private void inlineCallin(IProgressMonitor pm) throws CoreException {

 		fBaseRewrite = ASTRewrite.create(fBaseAST);

 		fRoleRewrite = ASTRewrite.create(fRoleAST);

@@ -612,7 +611,6 @@
 	 * @return the method body

 	 * @throws JavaModelException

 	 */

-	@SuppressWarnings("unchecked")

 	private Block createMethodBody(CallinBaseMethodInfo baseMethodInfo) throws JavaModelException {

 		Block block = fBaseAST.newBlock();

 		List<Statement> statements = block.statements();

@@ -640,7 +638,6 @@
 	 *            the rewrite that notes the changes

 	 * @throws JavaModelException

 	 */

-	@SuppressWarnings("unchecked")

 	private void adjustMethodMappings() throws JavaModelException {

 	

 		// create a map that gathers multiple methods for the same callin mapping

@@ -711,7 +708,6 @@
 	}

 

 

-	@SuppressWarnings("unchecked")

 	private boolean hasResultParameterMapping(ICallinMapping callinMapping) throws JavaModelException {

 		if (!hasParameterMapping(callinMapping)) {

 			return false;

@@ -763,7 +759,6 @@
 		return method.getReturnType().equals(Character.toString(Signature.C_VOID));

 	}

 

-	@SuppressWarnings("unchecked")

 	private void copyRoleParameterMappingsToInvocation(MethodInvocation invocation, CallinMappingDeclaration callinMappingDecl,

 			CallinBaseMethodInfo baseMethodInfo)

 			throws JavaModelException {	

@@ -808,7 +803,6 @@
 		}

 	}

 	

-	@SuppressWarnings("unchecked")

 	private void copyBaseParameterMappingsToInvocation(MethodInvocation invocation, CallinMappingDeclaration callinMappingDecl,

 			CallinBaseMethodInfo baseMethodInfo) throws JavaModelException {

 		MethodSpec roleMethodSpec = (MethodSpec) callinMappingDecl.getRoleMappingElement();

@@ -900,7 +894,6 @@
 		}

 	}

 

-	@SuppressWarnings("unchecked")

 	private Set<String> findTunneledParameters(CallinBaseMethodInfo baseMethodInfo)

 			throws JavaModelException {

 		// try to reuse cached result

@@ -957,7 +950,6 @@
 		copyInvocationParameters(invocation, parameterNames, parameterNames.length);		

 	}

 	// this variant allows to cut off unneeded parameters (only for before/after callins):

-	@SuppressWarnings("unchecked")

 	private void copyInvocationParameters(MethodInvocation invocation, String[] names, int n) throws JavaModelException {

 		for (int i=0; i<n; i++)

 			invocation.arguments().add(fBaseAST.newSimpleName(names[i]));

@@ -1034,7 +1026,6 @@
 	 * @param methodDeclaration

 	 *            the method declaration to be changed

 	 */

-	@SuppressWarnings("unchecked")

 	private void changeToPrivateVisibility(ASTRewrite astRewrite, MethodDeclaration methodDeclaration) {

 		Modifier privateVisibility = methodDeclaration.getAST().newModifier(ModifierKeyword.PRIVATE_KEYWORD);

 		

@@ -1075,7 +1066,6 @@
 	 *            the method declaration node of the role method

 	 * @throws JavaModelException

 	 */

-	@SuppressWarnings("unchecked")

 	private void handleCallinMethod(ASTRewrite astRewrite, CallinBaseMethodInfo baseMethodInfo, MethodDeclaration methodDeclaration)

 			throws JavaModelException {

 		List<Statement> statements = methodDeclaration.getBody().statements();

@@ -1145,7 +1135,6 @@
 	 *            the method declaration to remove the callin modifier from

 	 * @return true if a callin modifier was removed - otherwise false

 	 */

-	@SuppressWarnings("unchecked")

 	private boolean removeCallinFlag(MethodDeclaration methodDeclaration) {

 		List<IExtendedModifier> modifiers = methodDeclaration.modifiers();

 	

@@ -1327,7 +1316,6 @@
 	 *            the offset to start

 	 * @throws JavaModelException

 	 */

-	@SuppressWarnings("unchecked")

 	private void appendParameterDeclarations(MethodDeclaration roleMethodDeclaration, IMethod baseMethod, int offset) throws JavaModelException {

 		MethodDeclaration baseMethodDecl = RefactoringUtil.methodToDeclaration(baseMethod, fRootBase);

 		List<SingleVariableDeclaration> baseParamDeclarations = baseMethodDecl.parameters();

@@ -1344,7 +1332,6 @@
 		}

 	}

 

-	@SuppressWarnings("unchecked")

 	private void appendTunneledParameterDeclarations(CallinBaseMethodInfo baseMethodInfo, MethodDeclaration copyOfRoleMethodDeclaration)

 			throws JavaModelException {

 		// append tunneled parameters to roleMethodSignature

@@ -1377,7 +1364,6 @@
 	 *            the offset to begin to copy

 	 * @throws JavaModelException

 	 */

-	@SuppressWarnings("unchecked")

 	private void appendInvocationParameters(MethodInvocation invocation, IMethod method, int offset) throws JavaModelException {

 		String[] names = method.getParameterNames();

 		

@@ -1461,7 +1447,6 @@
 		return localVars;

 	}

 

-	@SuppressWarnings("unchecked")

 	private MethodSpec findBaseMethodSpec(CallinMappingDeclaration callinMappingDecl, IMethod baseMethod) {

 		MethodSpec baseMethodSpec = null;

 		List<MethodSpec> methodSpecs = callinMappingDecl.getBaseMappingElements();

diff --git a/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/util/RefactoringUtil.java b/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/util/RefactoringUtil.java
index be517bd..8ea6f49 100644
--- a/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/util/RefactoringUtil.java
+++ b/plugins/org.eclipse.objectteams.otdt.refactoring/src/org/eclipse/objectteams/otdt/internal/refactoring/util/RefactoringUtil.java
@@ -533,7 +533,6 @@
 		return readableActualMethodParamTypes;
 	}
 
-	@SuppressWarnings("unchecked")
 	// List getBaseMappingElements()
 	public static RefactoringStatus checkForAmbiguousBaseMethodSpecs(ArrayList<IRoleType> boundRoleTypes, String newMethodName, String oldMethodName, IAmbuguityMessageCreator msgCreator)
 			throws JavaModelException {