question: public static Charset toCharset ( Charset charset ) { return charset == null ? Charset . defaultCharset ( ) : charset ; }
target:  Returns the given Charset or the default Charset if the given Charset is null.