WASHINGTON — Justice John Paul Stevens, who died on Tuesday at 99, served for almost 35 years on the Supreme Court until his retirement in 2010. Here are some highlights from that long and eventful run.

He was the last justice from the “greatest generation.”

Justice Stevens was the last member of the Supreme Court to have served in World War II, as a Navy cryptographer, and the experience influenced his jurisprudence. Although his voting record was generally liberal, he dissented from Texas v. Johnson in 1989, which ruled that burning a flag as political protest was protected by the First Amendment. “Sanctioning the public desecration of the flag will tarnish its value,” he wrote, “both for those who cherish the ideas for which it waves and for those who desire to don the robes of martyrdom by burning it.”

[Justice Stevens was praised after his death for his legal prowess and humble approach.]

He had a change of heart on the death penalty.

In 1976, just six months after he joined the Supreme Court, Justice Stevens voted to reinstate capital punishment after a four-year moratorium. With the right procedures, he wrote, it was possible to ensure “evenhanded, rational and consistent imposition of death sentences under law.” But he receded from that view over the decades that followed.

In 2008, two years before he retired, he announced in a concurrence that he now believed the death penalty to be unconstitutional. In a 2010 essay published in The New York Review of Books after he stepped down, he wrote that personnel changes on the court, coupled with “regrettable judicial activism,” had created a system of capital punishment that was skewed toward conviction, warped by racism, infected with politics and tinged with hysteria.