-
Bug
-
Resolution: Won't Do
-
Critical
-
4.1.0.Beta1
-
None
./jbosstools-central/maven/tests/org.jboss.tools.maven.sourcelookup.test/src/org/jboss/tools/maven/sourcelookup/test/SourceLookupTest.java has the following method:
private static IRuntimeDetectorDelegate getJBossASHandler() { Set<IRuntimeDetector> detectors = RuntimeCoreActivator.getDefault().getRuntimeDetectors(); for (IRuntimeDetector detector:detectors) { IRuntimeDetectorDelegate delegate = ((RuntimeDetector)detector).getDelegate(); if (delegate instanceof JBossASHandler) { return delegate; } } return null; }
The class and its package name are not technically API. It would be best if you instead compared against the handler's id: org.jboss.tools.runtime.handlers.JBossASHandler
Since this ID is declared in plugin.xml, it's best if you hard-code the string.
Trying to clean up people who depend on my internal classes so that I can get to organizing stuff properly.