> The copyright phase started on April 16, 2012, and consisted of several distinct claims of infringement: a nine-line rangeCheck function, several test files, the structure, sequence and organization (SSO) of the Java (API), and the API documentation > ... > Alsup did agree with the jury that the rangeCheck function and eight security files were a copyright infringement, but the only relief available was statutory damages up to a maximum of US$150,000
The damages were small (and included some other files beyond just the 9-line function), but from my(obligatorily disclaimed as non-lawyer) understanding, there is legal precedent that copying a nine-line function.
(I had a little trouble digging up the exact line lines of code since I don't know offhand where to find the Java standard library sources, but if anyone is curious, I did find them in this blogpost: https://majadhondt.wordpress.com/2012/05/16/googles-9-lines/)