Michael Connelly said this quote

There was polite laughter in the courtroom. Bosch noticed that the attorneys -- prosecution and defense -- dutifully joined in, a couple of them overdoing it. It had been his experience that while in open court a judge could not possibly tell a joke that the lawyers did not laugh at.