Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JIBDE-12860 - JAX-RS validation problems are not linked #94

Merged
merged 1 commit into from Oct 24, 2013
Merged

JIBDE-12860 - JAX-RS validation problems are not linked #94

merged 1 commit into from Oct 24, 2013

Conversation

xcoulon
Copy link
Member

@xcoulon xcoulon commented Oct 23, 2013

Fixed the problem where some markers would not be removed from the resource to be validated between
two validation calls, which meant that duplicate markers for the same problem would exist on each
resource.

Also refactored a bit the search/element retrieval: the JaxrsElementIndexationDelegate now not only
deals with the Lucene indexation and searches, but also uses the metamodel to return collections of
JAX-RS elements, Endpoints or workspace Resources. Although this does not break the public API, the change
from List/Set to Collection impled a few changes in the JUnit tests as well.

Added JUnit tests to covers the fixes.

This patch also fixes:

  • JBIDE-15662: Warning Multiple JAX-RS Activators doesn't disappear
  • JBIDE-15664: Application path configured in web.xml causes warning

* element matched in the metamodel.
* @throws JavaModelException
*/
private List<IJaxrsElement> searchJaxrsElements(final IJavaElement element) throws JavaModelException {
private Collection <IJaxrsElement> searchJaxrsElements(final IJavaElement element) throws JavaModelException {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the change ? should clients now assume ordering is not deterministic or?

@maxandersen
Copy link
Member

+1 for change since internal and cleans up marker handling quite a bit

Fixed the problem where some markers would not be removed from the resource to be validated between
two validation calls, which meant that duplicate markers for the same problem would exist on each
resource.

Also refactored the search/element retrieval: the JaxrsElementIndexationDelegate now not only
deals with the Lucene indexation and searches, but also uses the metamodel to return List of
JAX-RS elements, Endpoints or workspace Resources.
Renamed some marker deletion/undexing methods to use the "remove" verb (eg: "removeMarker()") and be consistent with the
existing "remove()" methods that remove the elements themselves.
Added JUnit tests to covers the fixes.

This patch also fixes:
- JBIDE-15662: Warning Multiple JAX-RS Activators doesn't disappear
- JBIDE-15664: Application path configured in web.xml causes warning
@xcoulon xcoulon merged commit 598416f into jbosstools:jbosstools-4.1.x Oct 24, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants