Skip to content

Commit

Permalink
Revert "Avoid potential NPE"
Browse files Browse the repository at this point in the history
This reverts commit 467e317.
  • Loading branch information
daniellansun committed Jan 3, 2025
1 parent b8ff133 commit 8ca12ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ class JmxMetaMapBuilder {
if (descriptor && descriptor instanceof Map) {
// foo:[params:["paramTypeName0":[name:"",desc:""], paramTypeNameN[:]]]
if (descriptor.params && descriptor.params instanceof Map) {
params = descriptor?.params?.keySet()?.toList()
params = descriptor?.params.keySet().toList()
}
// foo:[params:["paramTypeName0",...,"paramTypeNameN"]]
if (descriptor.params && descriptor.params instanceof List) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ class FormatStringChecker extends GroovyTypeCheckingExtensionSupport.TypeCheckin
}

void checkBadFlags(flagList, conversion, Expression target, String badFlags) {
def mismatched = flagList?.findAll { badFlags.contains(it) }?.join()
def mismatched = flagList?.findAll { badFlags.contains(it) }.join()
if (mismatched) {
addStaticTypeError("FormatFlagsConversionMismatch: Conversion = $conversion, Flags = '$mismatched'", target)
}
Expand Down

0 comments on commit 8ca12ea

Please sign in to comment.