Before people get in to a panic...
I'm pretty sure I'm going to get down voted by many but F' it. I think its important to really understand what is at stake here.
This isn't about copyrighting code but more of fair use.
If you go to the Wikipedia entry on the case you will find this gem:
The Court found that as a matter of law, Google's use of Java could not have fallen within fair use, even if all factual matters decided by the jury had been in Google's favor. The Appeals Court found that Google's use of API code declarations had not met any of the four current criteria for fair use, but was merely untransformed reuse. It had not been transformative, since it was used for the same purposes without even minimal changes or rewrites. It was not minimal, since it was agreed that only 170 lines of the 11,500 lines copied were needed for Google's purposes. It was not within any example of transformation, nor intended to permit third party interoperability, since Google had made no substantial efforts to use them for the purpose of third party interoperability. (In fact it found that Google had tried to prevent interoperability with other Java and had previously been refused a license by Sun for that reason.[12]) It was not transformative in the sense of a new platform either, since other Java smartphones predated Android.[62] It was plausible that the use had harmed Sun/Oracle – perhaps to a great extent if Oracle were to be believed – since as a result, vendors began to expecting Oracle to compete on price with a freely available derivative of its own language, and to require very steep discounts and undesired contractual terms.[62] Therefore, Google's use of the Java code and APIs failed to meet all four of the currently accepted criteria under which fair use would be possible.[62]
You really need to get a single malt, pint, coffee, or tea and sit down and read the following:
http://www.cafc.uscourts.gov/sites/default/files/opinions-orders/17-1118.Opinion.3-26-2018.1.PDF
The courts are saying that Google's use was not 'fair use'. So for everyone who's up in arms that now this ruling breaks the industry... its false. Fair use still applies. So you can freely use APIs as they were meant to be used.
Sorry, but while both companies are evil, if you're being objective and take the time to read the court's decision... It was the right one.
What I found interesting in the Wikipedia doc:
(In fact it found that Google had tried to prevent interoperability with other Java and had previously been refused a license by Sun for that reason.[12])
So there is more to this case than just Oracle being dicks.