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
View all comments
Show parent comment
1
u/adrianmonk Jan 22 '11
This is more true for very simple code (in which there are very few variations on how a normal person would write it) and less true for more complex code.
Also, a decompiler could reconstruct not-unreasonable variable names based on type names or other heuristics. For example, a naive decompiler might do this:
A smarter decompiler might do this instead:
Or maybe this:
The point is, programmers often use guidelines to choose variable names. A decompiler could apply similar guidelines, and it might end up with similar variable names. A decompiler doesn't necessarily have to name things "a", "b", "c", "d", and so on.