What does "Apply rename on Comments" mean when you rename a class in Java?

3

I am modifying the name of a class, it throws a "Can not Find Symbol" when I execute the project, if someone will explain if there is any difference between having the selected checkBox and not having it when modifying the name of the class and if it has to do with the error that marks me.

    
asked by Dacoso 09.11.2016 в 16:52
source

1 answer

3

The translations are literal

When that class name is found in comments will change to the new name in the code comments

For example

/***
 * MiViejaClase es una utileria de funciones de prueba
 * @author x
 * 09/11/2016
 */
public class MiViejaClase {
....

- > Rename to NewClass with the option activated

/***
 * NuevaClase es una utileria de funciones de prueba
 * @author x
 * 09/11/2016
 */
public class NuevaClase {
....

- > Rename to NewClass without the option activated

/***
 * MiViejaClase es una utileria de funciones de prueba
 * @author x
 * 09/11/2016
 */
public class NuevaClase {
....

It would be recommendable whenever you want to rename a class, activate this option, to keep the code and correlated comments

    
answered by 09.11.2016 / 16:56
source