Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
msridhar committed Dec 21, 2024
1 parent abd902b commit ad2c5a2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1370,8 +1370,8 @@ public ImmutableSetMultimap<MethodRef, Integer> explicitlyNullableParameters() {
for (Map.Entry<Integer, Set<String>> entry : innerEntry.getValue().entrySet()) {
Integer index = entry.getKey();
if (index >= 0 && entry.getValue().stream().anyMatch(a -> a.contains("Nullable"))) {
// remove spaces
methodNameAndSignature = methodNameAndSignature.replaceAll("\\s", "");
// remove spaces after commas
methodNameAndSignature = methodNameAndSignature.replaceAll(",\\s", ",");
mapBuilder.put(methodRef(className, methodNameAndSignature), index);
}
}
Expand Down Expand Up @@ -1403,8 +1403,8 @@ public ImmutableSetMultimap<MethodRef, Integer> nonNullParameters() {
+ methodEntry.getKey()
+ " arg "
+ argEntry.getKey());
// remove spaces
methodNameAndSignature = methodNameAndSignature.replaceAll("\\s", "");
// remove spaces after commas
methodNameAndSignature = methodNameAndSignature.replaceAll(",\\s", ",");
mapBuilder.put(methodRef(className, methodNameAndSignature), index);
}
}
Expand Down

0 comments on commit ad2c5a2

Please sign in to comment.