title: MessageFormat Formatting without Default Locale
body: <p>I'm trying to fix the errors of forbidden apis. I had an error which says:</p>
  
  <pre><code>[forbiddenapis] Forbidden method invocation: java.text.MessageFormat#format(java.lang.String,java.lang.Object[]) [Uses default locale]
  [forbiddenapis]   in org.a.b.MyClass (MyClass.java:813)    
  </code></pre>
  
  <p>Which points to that:</p>
  
  <pre><code>logger.debug(MessageFormat.format("Added {0} documents", new Object[] { new Integer(count) }));
  </code></pre>
  
  <p>So, I've changed it to that:</p>
  
  <pre><code>logger.debug(MessageFormat.format("Added {0} documents", new Object[] { new Integer(count) }, Locale.ROOT));
  </code></pre>
  
  <p>However, error still exists. How can I fix it?</p>