Source code has comments after decompile whith JD-GUI

2.8k views Asked by At

I have converted class files into source code by JD GUI Tool. I open the jar file using JD-GUI version 0.3.5, then open File folder and click "Save All Sources". There are comments in source code, e.g.:

/*     */
/*     */ @ManagedBean
/*  60   */ @SessionScoped

How can I remove those comments?

2

There are 2 answers

0
Wundwin Born On BEST ANSWER

Change the setting under Help > Preferences and uncheck Display line numbers as in image;

enter image description here

1
Arturo Volpe On

From this you can turn off in (Only works with JD Eclipse)

Window –> Preferences –> Java –> Decompiler 

And uncheck line numbers

Like this:

enter image description here

These comments are the line number from the .class file.