Bug 57131 Remove references to AST#parseCompilationUnit from java.compare
JDT Core wants to remove the following methods (that have been deprecated for several builds now) for next integration build: - AST#parseCompilationUnit(ICompilationUnit,boolean,WorkingCopyOwner) (use ASTParser instead) - ICompilationUnit#reconcile(boolean, IProgressMonitor) (use reconcile(boolean, boolean, WorkingCopyOwner, IProgressMonitor) instead)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java
JavaPlugin.log(ex);
			return null;
		}
				
		if (ignoreWhiteSpace) { 	
			
			
			StringBuffer buf= new StringBuffer();
			char[] b= content.toCharArray();
			
			
			
			IScanner scanner= ToolFactory.createScanner(true, true, false, false);	
			scanner.setSource(b);
			try {
				int token;
				while ((token= scanner.getNextToken()) != ITerminalSymbols.TokenNameEOF) {
					switch (token) {
					case ITerminalSymbols.TokenNameWHITESPACE:
					case ITerminalSymbols.TokenNameCOMMENT_BLOCK:
					case ITerminalSymbols.TokenNameCOMMENT_JAVADOC:
					case ITerminalSymbols.TokenNameCOMMENT_LINE:
						int l= buf.length();
						if (l > 0 && buf.charAt(l-1) != ' ')
							buf.append(' ');
						break;
					default:
						buf.append(scanner.getCurrentTokenSource());
						buf.append(' ');
						break;