Move code from static initializer into invocable static method.

pull/192/head
Brett Wooldridge 11 years ago
parent bdb4d575e2
commit f619fbfb06

@ -37,12 +37,6 @@ public class CodaHaleShim
{
private static final Logger LOGGER = LoggerFactory.getLogger(CodaHaleShim.class);
static
{
CodaHaleShim codaHaleShim = new CodaHaleShim();
codaHaleShim.loadOrShimCodahale();
}
private CodaHaleShim()
{
// empty
@ -54,7 +48,8 @@ public class CodaHaleShim
*/
public static void initialize()
{
// no-op
CodaHaleShim codaHaleShim = new CodaHaleShim();
codaHaleShim.loadOrShimCodahale();
}
/**

@ -37,12 +37,6 @@ public class CodaHaleShim
{
private static final Logger LOGGER = LoggerFactory.getLogger(CodaHaleShim.class);
static
{
CodaHaleShim codaHaleShim = new CodaHaleShim();
codaHaleShim.loadOrShimCodahale();
}
private CodaHaleShim()
{
// empty
@ -54,7 +48,8 @@ public class CodaHaleShim
*/
public static void initialize()
{
// no-op
CodaHaleShim codaHaleShim = new CodaHaleShim();
codaHaleShim.loadOrShimCodahale();
}
/**

Loading…
Cancel
Save