aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hao Zhong (JIRA)" <>
Subject [jira] [Created] (ARIES-1705) OBRAriesResolver should identify the application being transformed
Date Fri, 17 Mar 2017 02:22:41 GMT
Hao Zhong created ARIES-1705:

             Summary: OBRAriesResolver should identify the application being transformed
                 Key: ARIES-1705
             Project: Aries
          Issue Type: Bug
          Components: Application
            Reporter: Hao Zhong

The OBRAriesResolvertoImportedBundle method  can import duplicated bundles. The buggy code
is as follow:
private Collection<ImportedBundle> toImportedBundle(Collection<Content> content)
throws ResolverException
     log.debug(LOG_ENTRY, "toImportedBundle", content);

     List<ImportedBundle> result = new ArrayList<ImportedBundle>();
The arraylist shall be replaced with Hashset to remove duplicates. Indeed, ARIES-464 fixed
a similar bug in PostResolveTransformer. Its fixed code is:
 private Set<ImportedBundle> toImportedBundle(Collection<Content> content) throws

    _logger.debug(LOG_ENTRY, "toImportedBundle", new Object[]{content});

    Set<ImportedBundle> result = new HashSet<ImportedBundle>();

This message was sent by Atlassian JIRA

View raw message