jetty#11789 run list distinct on the generated resources list during startup
This commit is contained in:
parent
a9b2da533f
commit
7c7c6e3d5e
|
@ -485,7 +485,8 @@ public class MetaData
|
|||
resources.add(null); //always apply annotations with no resource first
|
||||
resources.addAll(_orderedContainerResources); //next all annotations from container path
|
||||
resources.addAll(_webInfClasses); //next everything from web-inf classes
|
||||
resources.addAll(getWebInfResources(isOrdered())); //finally annotations (in order) from webinf path
|
||||
resources.addAll(getWebInfResources(isOrdered())); //finally annotations (in order) from webinf path
|
||||
resources = resources.stream().distinct().collect(Collectors.toList()); // filter out possible duplicates
|
||||
|
||||
for (Resource r : resources)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue