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.

1

u/joe0185 Moto G Stylus 2024 Jan 21 '11

Unless they are formatting their code in some way I am unfamiliar with - I am going to have to agree with you. Obviously things like casing and naming conventions are something that you could duplicate very easily. But why are the constructor parameters in the exact same order, why are the methods in the exact same order, ect ect.

1

u/adrianmonk Jan 22 '11

Obviously things like casing and naming conventions are something that you could duplicate very easily.

Especially since there are specific coding conventions for Java laying out naming conventions and casing, indentation, and so on. There's even a description of which class members should come first (class variables before instance variables, constructors before methods, etc.).

These are not descriptions of the syntax; they are recommendations of which syntactically-valid things you should prefer and which syntactically-valid things you should not normally use.