The ruling was a setback for Kevin G. Johns Jr., who was trying to have his murder case moved from Baltimore County, where prosecutors have sent more murderers to death row in recent years than any other jurisdiction in the state.