Bug 108453 [quick fix] @SuppressWarnings("nls") on static initializer causes error
If you have static block with non-externalised strings and you add "SuppressWarning" quick fix to the block, jdt compiler reports error on the static key word saying "Syntax error, insert "enum Identifier" to complete EnumHeader" Cheers
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java
if (visitor.compareExpression != null) { 
				ASTNode expr= selectedNode;
				ASTNode parent= expr.getParent(); 
				while (parent instanceof InfixExpression && isBitOperation(((InfixExpression) parent).getOperator())) {
					expr= parent;
					parent= expr.getParent();
				}
				String label= CorrectionMessages.LocalCorrectionsSubProcessor_setparenteses_bitop_description;
				Image image= JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_CAST);
				CUCorrectionProposal proposal= new CUCorrectionProposal(label, context.getCompilationUnit(), 5, image);
				proposals.add(proposal);
				TextEdit edit= proposal.getTextChange().getEdit();
				ASTNode left= visitor.compareExpression.getLeftOperand();
				if (expr.getStartPosition() < left.getStartPosition()) {
					edit.addChild(new InsertEdit(expr.getStartPosition(), String.valueOf('(')));
					edit.addChild(new InsertEdit(ASTNodes.getExclusiveEnd(left), String.valueOf(')')));
				}
				ASTNode rigth= visitor.compareExpression.getRightOperand();
				int selEnd= ASTNodes.getExclusiveEnd(expr);
				if (selEnd > ASTNodes.getExclusiveEnd(rigth)) {
					edit.addChild(new InsertEdit(rigth.getStartPosition(), String.valueOf('(')));
					edit.addChild(new InsertEdit(selEnd, String.valueOf(')')));
				}
			}
		}
	}
	private static boolean isBitOperation(InfixExpression.Operator op) {
		return op == InfixExpression.Operator.AND || op == InfixExpression.Operator.OR || op == InfixExpression.Operator.XOR;
	}
	private static class CompareInBitWiseOpFinder extends ASTVisitor{