An Army private accused of sending classified material to the anti-secrecy website WikiLeaks has not been denied a speedy trial despite his lengthy pretrial confinement, a military judge ruled Tuesday.

Attorneys for Pfc. Bradley Manning had asked the judge to dismiss all charges against the former intelligence analyst because he’s been detained for two years and nine months. Defense attorney David Coombs argued that prosecutors dragged their feet and that a commander rubber-stamped their requests for delay after delay.

Prosecutors said the delays were reasonable, given the complexity of the case and the volume of classified material involved. The military judge, Col. Denise Lind, agreed Tuesday with prosecutors, with a few minor exceptions. She denied the defense motion, letting the charges against Manning stand.

Manning faces 22 charges, including aiding the enemy, which carries a maximum life sentence. His court-martial is scheduled to start June 3 at Fort Meade, an Army base between Baltimore and Washington.