示例:
def charArray(String s) { s == null ? null : s.toCharArray() }
在应用快速修复后:
def charArray(String s) { s?.toCharArray() }