Hello,<div><br></div><div><a href="https://github.com/qos-ch/slf4j/blob/master/jul-to-slf4j/src/main/java/org/slf4j/bridge/SLF4JBridgeHandler.java#L283">https://github.com/qos-ch/slf4j/blob/master/jul-to-slf4j/src/main/java/org/slf4j/bridge/SLF4JBridgeHandler.java#L283</a></div>
<div><br></div><div><br></div><div><pre style="margin-top:0px;margin-bottom:0px;padding:0px;border:0px"><div class="line" id="LC282" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;margin:0px;padding:0px 0px 0px 10px;border:0px">
<span class="cm" style="margin:0px;padding:0px;border:0px;color:rgb(153,153,136);font-style:italic">   </span></div><div class="line" id="LC283" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;margin:0px;padding:0px 0px 0px 10px;border:0px;background-color:rgb(255,255,204)">
  <span class="kd" style="margin:0px;padding:0px;border:0px;font-weight:bold">public</span> <span class="kt" style="margin:0px;padding:0px;border:0px;color:rgb(68,85,136);font-weight:bold">void</span> <span class="nf" style="margin:0px;padding:0px;border:0px;color:rgb(153,0,0);font-weight:bold">publish</span><span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">(</span><span class="n" style="margin:0px;padding:0px;border:0px">LogRecord</span> <span class="n" style="margin:0px;padding:0px;border:0px">record</span><span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">)</span> <span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">{</span></div>
<div class="line" id="LC284" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;margin:0px;padding:0px 0px 0px 10px;border:0px">    <span class="c1" style="margin:0px;padding:0px;border:0px;color:rgb(153,153,136);font-style:italic">// Silently ignore null records.</span></div>
<div class="line" id="LC285" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;margin:0px;padding:0px 0px 0px 10px;border:0px">    <span class="k" style="margin:0px;padding:0px;border:0px;font-weight:bold">if</span> <span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">(</span><span class="n" style="margin:0px;padding:0px;border:0px">record</span> <span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">==</span> <span class="kc" style="margin:0px;padding:0px;border:0px;font-weight:bold">null</span><span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">)</span> <span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">{</span></div>
<div class="line" id="LC286" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;margin:0px;padding:0px 0px 0px 10px;border:0px">      <span class="k" style="margin:0px;padding:0px;border:0px;font-weight:bold">return</span><span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">;</span></div>
<div class="line" id="LC287" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;margin:0px;padding:0px 0px 0px 10px;border:0px">    <span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">}</span></div>
<div class="line" id="LC288" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;margin:0px;padding:0px 0px 0px 10px;border:0px"><br></div><div class="line" id="LC289" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;margin:0px;padding:0px 0px 0px 10px;border:0px">
    <span class="n" style="margin:0px;padding:0px;border:0px">Logger</span> <span class="n" style="margin:0px;padding:0px;border:0px">slf4jLogger</span> <span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">=</span> <span class="n" style="margin:0px;padding:0px;border:0px">getSLF4JLogger</span><span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">(</span><span class="n" style="margin:0px;padding:0px;border:0px">record</span><span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">);</span></div>
<div class="line" id="LC290" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;margin:0px;padding:0px 0px 0px 10px;border:0px">    <span class="n" style="margin:0px;padding:0px;border:0px">String</span> <span class="n" style="margin:0px;padding:0px;border:0px">message</span> <span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">=</span> <span class="n" style="margin:0px;padding:0px;border:0px">record</span><span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">.</span><span class="na" style="margin:0px;padding:0px;border:0px;color:rgb(0,128,128)">getMessage</span><span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">();</span> <span class="c1" style="margin:0px;padding:0px;border:0px;color:rgb(153,153,136);font-style:italic">// can be null!</span></div>
<div class="line" id="LC291" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;margin:0px;padding:0px 0px 0px 10px;border:0px">    <span class="c1" style="margin:0px;padding:0px;border:0px;color:rgb(153,153,136);font-style:italic">// this is a check to avoid calling the underlying logging system</span></div>
<div class="line" id="LC292" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;margin:0px;padding:0px 0px 0px 10px;border:0px">    <span class="c1" style="margin:0px;padding:0px;border:0px;color:rgb(153,153,136);font-style:italic">// with a null message. While it is legitimate to invoke j.u.l. with</span></div>
<div class="line" id="LC293" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;margin:0px;padding:0px 0px 0px 10px;border:0px">    <span class="c1" style="margin:0px;padding:0px;border:0px;color:rgb(153,153,136);font-style:italic">// a null message, other logging frameworks do not support this.</span></div>
<div class="line" id="LC294" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;margin:0px;padding:0px 0px 0px 10px;border:0px">    <span class="c1" style="margin:0px;padding:0px;border:0px;color:rgb(153,153,136);font-style:italic">// see also <a href="http://bugzilla.slf4j.org/show_bug.cgi?id=108">http://bugzilla.slf4j.org/show_bug.cgi?id=108</a></span></div>
<div class="line" id="LC295" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;margin:0px;padding:0px 0px 0px 10px;border:0px">    <span class="k" style="margin:0px;padding:0px;border:0px;font-weight:bold">if</span> <span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">(</span><span class="n" style="margin:0px;padding:0px;border:0px">message</span> <span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">==</span> <span class="kc" style="margin:0px;padding:0px;border:0px;font-weight:bold">null</span><span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">)</span> <span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">{</span></div>
<div class="line" id="LC296" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;margin:0px;padding:0px 0px 0px 10px;border:0px">      <span class="n" style="margin:0px;padding:0px;border:0px">message</span> <span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">=</span> <span class="s" style="margin:0px;padding:0px;border:0px;color:rgb(221,17,68)">""</span><span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">;</span></div>
<div class="line" id="LC297" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;margin:0px;padding:0px 0px 0px 10px;border:0px">    <span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">}</span></div>
<div class="line" id="LC298" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;margin:0px;padding:0px 0px 0px 10px;border:0px">    <span class="k" style="margin:0px;padding:0px;border:0px;font-weight:bold">if</span> <span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">(</span><span class="n" style="margin:0px;padding:0px;border:0px">slf4jLogger</span> <span class="k" style="margin:0px;padding:0px;border:0px;font-weight:bold">instanceof</span> <span class="n" style="margin:0px;padding:0px;border:0px">LocationAwareLogger</span><span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">)</span> <span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">{</span></div>
<div class="line" id="LC299" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;margin:0px;padding:0px 0px 0px 10px;border:0px">      <span class="n" style="margin:0px;padding:0px;border:0px">callLocationAwareLogger</span><span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">((</span><span class="n" style="margin:0px;padding:0px;border:0px">LocationAwareLogger</span><span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">)</span> <span class="n" style="margin:0px;padding:0px;border:0px">slf4jLogger</span><span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">,</span> <span class="n" style="margin:0px;padding:0px;border:0px">record</span><span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">);</span></div>
<div class="line" id="LC300" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;margin:0px;padding:0px 0px 0px 10px;border:0px">    <span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">}</span> <span class="k" style="margin:0px;padding:0px;border:0px;font-weight:bold">else</span> <span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">{</span></div>
<div class="line" id="LC301" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;margin:0px;padding:0px 0px 0px 10px;border:0px">      <span class="n" style="margin:0px;padding:0px;border:0px">callPlainSLF4JLogger</span><span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">(</span><span class="n" style="margin:0px;padding:0px;border:0px">slf4jLogger</span><span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">,</span> <span class="n" style="margin:0px;padding:0px;border:0px">record</span><span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">);</span></div>
<div class="line" id="LC302" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;margin:0px;padding:0px 0px 0px 10px;border:0px">    <span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">}</span></div>
<div class="line" id="LC303" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;margin:0px;padding:0px 0px 0px 10px;border:0px">  <span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold">}</span></div>
<div class="line" id="LC303" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;margin:0px;padding:0px 0px 0px 10px;border:0px"><span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold"><br>
</span></div><div class="line" id="LC303" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;margin:0px;padding:0px 0px 0px 10px;border:0px"><span class="o" style="margin:0px;padding:0px;border:0px;font-weight:bold"><br>
</span></div><div class="line" id="LC303" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;margin:0px;padding:0px 0px 0px 10px;border:0px"><span class="o" style="margin:0px;padding:0px;border:0px">I don't understand the point of changing the local variable message to the empty string since that local variable is not used afterwards.</span></div>
<div class="line" id="LC303" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;margin:0px;padding:0px 0px 0px 10px;border:0px">Shouldn't this be like this :</div>
<div class="line" id="LC303" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px;margin:0px;padding:0px 0px 0px 10px;border:0px"><span class="o" style="margin:0px;padding:0px;border:0px"><br>
</span></div><div class="line" id="LC303" style="margin:0px;padding:0px 0px 0px 10px;border:0px"><span class="o" style="margin:0px;padding:0px;border:0px"><font color="#333333" face="Consolas, Liberation Mono, Courier, monospace"><span style="font-size:12px;line-height:16px">    if (message == null) {
      record.setMessage("");
    }
</span></font></span></div><div style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px"><span class="o" style="margin:0px;padding:0px;border:0px"><br></span></div>
<div style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px"><span class="o" style="margin:0px;padding:0px;border:0px">Should a file a bug ?</span></div>
<div style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px"><span class="o" style="margin:0px;padding:0px;border:0px"><br></span></div><div style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px">
Best regards</div><div style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16px">Maarten</div></pre></div>