Skip to content

Commit

Permalink
Fix compile.
Browse files Browse the repository at this point in the history
  • Loading branch information
ylangisc committed May 2, 2024
1 parent 81ed568 commit be30856
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reactive.Concurrency;
using System.Reflection;
using System.Runtime.CompilerServices;
Expand Down Expand Up @@ -616,17 +617,18 @@ private static void InitializeProtocolHandler()
});
}
}
var protocols = Utils.ConvertFromJavaList<Protocol>(ProtocolFactory.get().find());
var schemes = Scheme.values().ToDictionary(x => x.name());
schemes.Remove(Scheme.s3.name());
foreach (var protocol in Protocols)
foreach (var protocol in protocols)
{
foreach (var scheme in protocol.getSchemes())
{
if (!schemes.ContainsKey(scheme))
{
if (Log.isInfoEnabled())
if (Logger.isInfoEnabled())
{
Log.info(string.Format("Register custom scheme {0}", scheme));
Logger.info($"Register custom scheme {scheme}");
}
handler.setDefaultHandler(app, Arrays.asList(scheme));
}
Expand Down

0 comments on commit be30856

Please sign in to comment.