In 2010, shortly after Oracle acquired Java owner Sun Microsystems, Oracle sued Google for infringement of its copyright. This was followed by years of wrangling about whether it is possible to claim copyright over an API. In the final ruling, the American justices decided that regardless of whether or not copyright could be claimed over an API, it would, in any case, fall under fair use. Only a small part of the code is involved, and Google's actions have not led to a loss of sales for Oracle. Since Oracle is not active in the smartphone market, Android did not compete with Java SE.