#52 Method signature with wrong exception

open
nobody
5
2010-02-11
2010-02-11
Anonymous
No

org.ho.yaml.Yaml

public static <T> T loadType(InputStream in, Class<T> clazz) throws FileNotFoundException{

should be

public static <T> T loadType(InputStream in, Class<T> clazz) {

theres no need for the FileNotFoundException and can be removed without negative effects.

Thanks
Raphael Villela
raphaelvillela@gmail.com

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks