Google’s copying of the Java SE API, which included only those lines of code that were needed to allow programmers to put their accrued talents to work in a new and transformative program, was a fair use of that material as a matter of law.
Federal Circuit reversed.
I do remember the oracle vs Google lawsuit.
From the wikipedia article about it