@Test public void testMapLevel() { assertEquals(LogLevel.TRACE, JulMappings.mapLevel(Level.ALL)); assertEquals(LogLevel.TRACE, JulMappings.mapLevel(Level.FINEST)); assertEquals(LogLevel.TRACE, JulMappings.mapLevel(Level.FINER)); assertEquals(LogLevel.DEBUG, JulMappings.mapLevel(Level.FINE)); assertEquals(LogLevel.CONF, JulMappings.mapLevel(Level.CONFIG)); assertEquals(LogLevel.INFO, JulMappings.mapLevel(Level.INFO)); assertEquals(LogLevel.WARN, JulMappings.mapLevel(Level.WARNING)); assertEquals(LogLevel.ERROR, JulMappings.mapLevel(Level.SEVERE)); assertEquals(LogLevel.OFF, JulMappings.mapLevel(Level.OFF)); }
static int mapLevel(Level level) { final int intValue = level.intValue(); if (intValue <= Level.FINER.intValue()) { return LogLevel.TRACE; } else if (intValue <= Level.FINE.intValue()) { return LogLevel.DEBUG; } else if (intValue <= Level.CONFIG.intValue()) { return LogLevel.CONF; } else if (intValue <= Level.INFO.intValue()) { return LogLevel.INFO; } else if (intValue <= Level.WARNING.intValue()) { return LogLevel.WARN; } else if (intValue <= Level.SEVERE.intValue()) { return LogLevel.ERROR; } else { return LogLevel.OFF; } }
JulMappings { static int mapLevel(Level level) { final int intValue = level.intValue(); if (intValue <= Level.FINER.intValue()) { return LogLevel.TRACE; } else if (intValue <= Level.FINE.intValue()) { return LogLevel.DEBUG; } else if (intValue <= Level.CONFIG.intValue()) { return LogLevel.CONF; } else if (intValue <= Level.INFO.intValue()) { return LogLevel.INFO; } else if (intValue <= Level.WARNING.intValue()) { return LogLevel.WARN; } else if (intValue <= Level.SEVERE.intValue()) { return LogLevel.ERROR; } else { return LogLevel.OFF; } } }
JulMappings { static int mapLevel(Level level) { final int intValue = level.intValue(); if (intValue <= Level.FINER.intValue()) { return LogLevel.TRACE; } else if (intValue <= Level.FINE.intValue()) { return LogLevel.DEBUG; } else if (intValue <= Level.CONFIG.intValue()) { return LogLevel.CONF; } else if (intValue <= Level.INFO.intValue()) { return LogLevel.INFO; } else if (intValue <= Level.WARNING.intValue()) { return LogLevel.WARN; } else if (intValue <= Level.SEVERE.intValue()) { return LogLevel.ERROR; } else { return LogLevel.OFF; } } private  JulMappings(); }
JulMappings { static int mapLevel(Level level) { final int intValue = level.intValue(); if (intValue <= Level.FINER.intValue()) { return LogLevel.TRACE; } else if (intValue <= Level.FINE.intValue()) { return LogLevel.DEBUG; } else if (intValue <= Level.CONFIG.intValue()) { return LogLevel.CONF; } else if (intValue <= Level.INFO.intValue()) { return LogLevel.INFO; } else if (intValue <= Level.WARNING.intValue()) { return LogLevel.WARN; } else if (intValue <= Level.SEVERE.intValue()) { return LogLevel.ERROR; } else { return LogLevel.OFF; } } private  JulMappings();  }
JulMappings { static int mapLevel(Level level) { final int intValue = level.intValue(); if (intValue <= Level.FINER.intValue()) { return LogLevel.TRACE; } else if (intValue <= Level.FINE.intValue()) { return LogLevel.DEBUG; } else if (intValue <= Level.CONFIG.intValue()) { return LogLevel.CONF; } else if (intValue <= Level.INFO.intValue()) { return LogLevel.INFO; } else if (intValue <= Level.WARNING.intValue()) { return LogLevel.WARN; } else if (intValue <= Level.SEVERE.intValue()) { return LogLevel.ERROR; } else { return LogLevel.OFF; } } private  JulMappings();   }