A class action lawsuit challenged the legality of conditions facing pretrial detainees in a New York City correctional facility. Petitioners claimed that double-bunking, restrictions on reading materials that inmates were allowed to receive, and required cavity searches and shakedowns amounted to punishment before conviction.
https://www.oyez.org/cases/1978/77-1829