Skip to content
This repository has been archived by the owner on May 31, 2022. It is now read-only.

Commit

Permalink
Fix compiler error in Eclipse
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Syer committed Jun 3, 2016
1 parent b055772 commit dea14c0
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -153,8 +153,9 @@ private Set<String> extractScope(Map<String, ?> map) {
Object scopeObj = map.get(SCOPE);
if (String.class.isInstance(scopeObj)) {
scope = Collections.singleton(String.class.cast(scopeObj));
} else if (Collection.class.<String>isAssignableFrom(scopeObj.getClass())) {
Collection scopeColl = Collection.class.<String>cast(scopeObj);
} else if (Collection.class.isAssignableFrom(scopeObj.getClass())) {
@SuppressWarnings("unchecked")
Collection<String> scopeColl = (Collection<String>) scopeObj;
scope = new LinkedHashSet<String>(scopeColl); // Preserve ordering
}
}
Expand Down

0 comments on commit dea14c0

Please sign in to comment.