The Canons of Judicial Ethics restrict judges from commenting on pending court cases, even when the case is being heard in a different courtroom.
Access the CA Code of Judicial Ethics here: https://www.courts.ca.gov/documents/ca_code_judicial_ethics.pdf