Intelligent check code ideas, entry points

I am using intellij idea. I tried the "check code" function with which it came, and I wanted to fix something called "entry points". This is somehow related to my listings and my main method. I would like to know what the entry point is and how to fix this error.

+4
source share
1 answer

Entry points where the world around your code can call it, for example, Junit tests, servlets, classes with the main method. IntelliJ tries to track code usage back to at least one entry point, so if one of your classes is an entry point and Intellij couldn’t detect it, more unused code will be reported than the actual one. (If class A uses code from class B but nobody uses class A, class B still has unused code). You can fix this by adding your class to the set of entry points.

0
source

All Articles