r/Android • • Jan 21 '11

Oops: Android contains directly copied Java code, strengthening Oracle's case -- Engadget

http://www.engadget.com/2011/01/21/oops-android-contains-directly-copied-java-code-strengthening/
0 Upvotes

74 comments sorted by

View all comments

11

u/[deleted] Jan 21 '11

Having looked at the example code, it isn't obvious how a lot of it could be written differently, the requirements of the methods are fairly well-defined.

If google had copied something with more than one possible implementation, like a sort algorithm, that would be much more convincing. Suprise suprise, such code is very, very different.

6

u/Tobiaswk Developer - Kotori your friend! Jan 21 '11

When you're looking at the exact same variable names, structure and composition of the code it does seems odd that they match. It seems like a complete copy/paste. At least some parts of the code-structure would be different. I see your point, but as it is now, this looks like a complete ripoff.

3

u/mccoyn Jan 21 '11

The code is an implementation of a interface that is part of Java (I assume). The variable names are predefined. The function names are predefined. The exact effects of each function is predefined. You would have to work hard to write that code and not make it look like that. In some of the later examples, where local variables are defined, different names are used and different loop structures are used.