Community
Participate
Working Groups
Build ID: N/A Steps To Reproduce: The Find Unreferenced Members action in the Core Tools plugin is a great tool for finding potential dead code! However it would be nice is some configuration could made to the plugin as outline below. 1. Create a new Java Project with two source folders src/main/java and src/test/java. 2. Add a class Foo with a method dummy() to the src/main/java folder 3) Add a Junit test FooTest that tests the dummy() method in Foo to src/test/java folder 4. Install The Core Tools Plugin (http://www.eclipse.org/eclipse/platform-core/updates/) 5. Right-click on the src/main/java folder and select Find Unreferenced Members Now Foo.dummy() is not reported as unused as the compilation unit (?) as FooTest refers to the class. A preference page should be added for configuring the find unreferenced members action. A simple configuration option could be to add a "Ignore references from paths matching "vale", e.g. src/test/java. References that from source files matching the path set in the configuration should be ignore. If no path string is specified in the preference page all referring classes should be considered. The Find Unreferenced Code action should also be configurable to ignore the serialVersionUID field for classes implementing java.io.Serializable. More information: The bug should probably be filed against JDT.. I've patched the core-tools plugin locally to add the enhancement requested in this bug report but it would be nice to see an updated official version of core-tools.
Passing to JDT for comment, punt back if it's not the right component.
I think this is from Platform Core (John)
Can you give a patch for this?
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.