WOODBURY - A judge has recused himself in the case of three former high ranking Nassau County officers charged with official misconduct.

In court, the judge said he is friends with the former police commissioner. The judge stated he wants to avoid any perception of impropriety.

The former officials are accused of helping Zachary Parker, the son of an influential businessman, avoid burglary charges. Former Second Deputy Commissioner William Flanagan, former Deputy Chief of Patrol John Hunter and retired Detective Sgt. Alan Sharpe were indicted on charges of corruption and official misconduct.

Parker pleaded guilty to burglarizing a Bellmore school in 2009 and being in possession of stolen property.

The former cops say they have proof Bellmore school officials didn't want to press charges against the young man.

Newsday: Nassau top cops accused in cover-up got 6-figure payouts3 ex-Nassau PD officials plead not guilty to criminal charges2 Nassau PD officials resign ahead of expected indicments