#50 JSch#setLogger lacks "else"

open
nobody
None
5
2011-01-20
2011-01-20
No

Implementation lacks "else" :
public static void setLogger(Logger logger){
if(logger==null) JSch.logger=DEVNULL;
JSch.logger=logger;
}
Change to:
JSch.logger=(logger==null ? DEVNULL : logger);

Discussion

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

Sign up for the SourceForge newsletter:





No, thanks