vendredi 9 novembre 2018

Java: Telling JVM to treat all fields/methods as public

I'm going through a java codebase and think that it would be much easier to see how the software works if I could temporarily make all fields and methods public.

The access specifiers are basically guidelines to be followed by the programmer while he is coding(ex. use setter instead of direct assignment to allow the setter to perform some other work associated with the field). Is it possible to tell jvm to ignore the access limiters when running a java program?

Another possibility might be to use some IDE plugin which manually changes the visibility of everything to public.

Aucun commentaire:

Enregistrer un commentaire