It's a bit different from that. Any developer who writes a big chunk of the Java API violates their copyright. It's the API as a whole, not one method in it.
That's still super grey, the higher courts in this case haven't really been looking at de minimis interpretations in a positive light (overturning a lower court de mininis ruling over the range check code). It just hasn't been a real sticking point yet on the API questions.
It's still insane, in my view...