I'm not convinced we need it, but it was put there to make Level as close to a 
real enum as possible. Every enum provides that static method (by way of 
extending Enum).

N

On Mar 25, 2014, at 7:28 AM, Gary Gregory wrote:

> Why do we have this API in org.apache.logging.log4j.Level:
> 
>     public static <T extends Enum<T>> T valueOf(Class<T> enumType, String 
> name) {
>         return Enum.valueOf(enumType, name);
>     }
> 
> ?
> 
> -- 
> E-Mail: garydgreg...@gmail.com | ggreg...@apache.org 
> Java Persistence with Hibernate, Second Edition
> JUnit in Action, Second Edition
> Spring Batch in Action
> Blog: http://garygregory.wordpress.com 
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to