All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pkg.Issue2 Maven / Gradle / Ivy

The newest version!
package pkg;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Simple class to reproduce issue 2, but it works.
 *
 * @see https://github.com/KengoTODA/findbugs-slf4j/issues/2
 */
public class Issue2 {
  private final Logger logger = LoggerFactory.getLogger(getClass());

  void method() {
    final RuntimeException ex = new RuntimeException();
    final Integer num = 4;
    final String str = "fred";
    logger.debug(str + " barney={}, {}, {}, {}", num, ex);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy