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

@param charset A charset or null.
@return the given Charset or the default Charset if the given Charset is null
spring-cloud-alibaba-starters/spring-cloud-alibaba-commons/src/main/java/com/alibaba/cloud/commons/io/Charsets.java