Skip to content

Commit

Permalink
Merge pull request #175 from gchq/174-bug-duplicate-interfaces-not-al…
Browse files Browse the repository at this point in the history
…lowed-in-dynamic-proxies

HqdmObjectFactory - disallow duplicate interfaces for dynamic proxies.
  • Loading branch information
GCHQDeveloper42 authored Jan 25, 2024
2 parents 979f6e9 + 50402e5 commit ccc499d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public static Thing create(final IRI iri, final List<Pair<Object, Object>> pairs
* @return Array of Class.
*/
private static <T extends Thing> java.lang.Class<T>[] irisToClasses(final Set<IRI> iris) {
final List<java.lang.Class<? extends Thing>> classes = new ArrayList<>(3);
final Set<java.lang.Class<? extends Thing>> classes = new HashSet<>(3);

// It will be a small list so just iterate it.
for (final IRI iri : iris) {
Expand Down

0 comments on commit ccc499d

Please sign in to comment.