jplag / JPlag

State-of-the-Art Software Plagiarism & Collusion Detection
https://jplag.github.io/JPlag/
GNU General Public License v3.0
1.37k stars 312 forks source link

Java Language Frontend: J_CONSTR_BEGIN, J_CONSTR_END and J_VOID never used #1865

Open euberdeveloper opened 2 months ago

euberdeveloper commented 2 months ago

It can be seen from the code that these token types for Java are never used:

image

euberdeveloper commented 2 months ago

The same can be said for other tokens

image

tsaglam commented 2 months ago

Yes, the unused tokens and the comments after each line are very much legacy. Some of them should not be used during tokenization as they decrease detection quality by enlarging the attack surface. For others, it is unclear if they have an impact at all (if used).