Annoyance - How to disable Eclipse class access warnings

I was looking for options, but I cannot find a way to disable these warnings. Warnings such as:

 Classpath entry org.eclipse.jdt.junit.JUNIT_CONTAINER / 4 will not be exported or published.  Runtime ClassNotFoundExceptions may result.   

Just do not set yourself any goals other than cluttering my view of the "Problem."

+24
java eclipse
Sep 06 '10 at 19:09
source share
2 answers

error 190783 may be relevant to this issue.

This warning now has two quick fixes:

-one, which adds the " dependency " attribute (this is the current quick fix)

-one, which adds the attribute " nondependency "; adding this attribute explicitly excludes the cp entry from consideration as a potential publication / export dependency. If the user changes their mind, they can remove this attribute through the JDT build user interface.

Like Mondain comments:

I found him! Right-click on the warning and select a quick fix, yay!

Here's how you can use Quick Fix: See also Frequently Asked Questions. What is a quick fix? , Quick Fix, and Quick Assist

alt text

+26
Sep 06 '10 at 19:12
source share

Quick fix for the whole project (may be too greedy). Assumes linux utilities (or cygwin):

 cp .classpath classpath-bak cat classpath-bak | sed 's@^\(\s*<classpathentry kind=.*\)/>\s*$@\1><attributes><attribute name="org.eclipse.jst.component.nondependency" value=""/></attributes></classpathentry>@' > .classpath 
+1
Feb 13 '15 at 14:01
source share



All Articles