<i>Google took a GPL code and licensed it under a different license - that&#x27;s why they are sued.</i><p>The only code that was alleged to be copied were a few test files (which weren&#x27;t even distributed) and a 9-line function called &quot;rangeCheck&quot;.<p>There was a second copyright claim on the APIs, but Oracle didn&#x27;t claim the <i>code</i> was copied, just that the reimplementation had the same &quot;structure, sequence and organization&quot; (that is, same names and arguments).