Bug 26546 In/correct quick fix for non-static access to static member [quick fix]
I have classes like so: com.me.Common extends org.junit.TestCase and com.me.MyTest extends Common. In my test, I have JUnit assertXXX calls coded like so: this.assertXXX(...); I therefore get warnings for non-static access to static members, which is nice! The quick fix changes this: this.assertXXX(...); to this: MyTest.assertXXX(...); I was expecting: Assert.assertXXX(...); Any thoughts? Aside from the quick fix wouldn't Assert... be "more correct"?
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java
}
		{
			ASTRewrite rewrite= new ASTRewrite(nodeToCast.getParent());
			
			String label;
			Image image= JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_CHANGE);
			ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrectionProposal("", cu, rewrite, 1, image);
			String simpleCastType= proposal.addImport(castType);
			
			if (nodeToCast.getNodeType() == ASTNode.CAST_EXPRESSION) {
				label= CorrectionMessages.getFormattedString("LocalCorrectionsSubProcessor.changecast.description", castType); 
				CastExpression expression= (CastExpression) nodeToCast;
				rewrite.markAsReplaced(expression.getType(), rewrite.createPlaceholder(simpleCastType, ASTRewrite.TYPE));
			} else {
				label= CorrectionMessages.getFormattedString("LocalCorrectionsSubProcessor.addcast.description", castType); 
				
				Expression expressionCopy= (Expression) rewrite.createCopy(nodeToCast);
				Type typeCopy= (Type) rewrite.createPlaceholder(simpleCastType, ASTRewrite.TYPE);
				CastExpression castExpression= astRoot.getAST().newCastExpression();
				castExpression.setExpression(expressionCopy);
				castExpression.setType(typeCopy);
				
				rewrite.markAsReplaced(nodeToCast, castExpression);
			}
			proposal.setDisplayName(label);
			proposal.ensureNoModifications();
			
			proposals.add(proposal);
		}