Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: make Set creation Java 8 compatible
  • Loading branch information
fgreinacher committed Apr 7, 2022
commit 1e3eab6e413ee4978590403372015e68590f2365
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ public Docket customImplementation(){
URI hostURI = new URI(hostString);
String scheme = hostURI.getScheme();
if (scheme != null) {
docket.protocols(Set.of(new String[] { scheme }));
Set<String> protocols = new HashSet<String>();
protocols.add(scheme);
docket.protocols(protocols);
}
String authority = hostURI.getAuthority();
if (authority != null) {
Expand Down