(Photo: Jason Doiy/ALM)

After 11 years of knock-down, drag-out litigation Google has prevailed over Oracle Corp. in their copyright clash over Java application programming interfaces.

The U.S. Supreme Court ruled flatly by a 6-2 vote Monday that Google's use of 11,500 lines of declaring code from the Java programming language was fair, because it used only the amount of code necessary to transform the work into "a highly creative and innovative tool for a smartphone environment"—namely, the Android operating system.