Skip to content

Commit

Permalink
Improved type inference when matching a generic type T with actual type
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Dec 12, 2024
1 parent 510381a commit 5c9b6ac
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,9 @@ else if((parentFieldDeclarationMap != null && parentFieldDeclarationMap.contains
public static boolean compatibleTypes(UMLParameter parameter, UMLType type, UMLAbstractClassDiff classDiff, UMLModelDiff modelDiff) {
String type1 = parameter.getType().toString();
String type2 = type.toString();
if(parameter.getType().getClassType().length() == 1) {
return parameter.getType().getArrayDimension() == type.getArrayDimension();
}
if(collectionMatch(parameter.getType(), type))
return true;
if(type1.equals("Throwable") && type2.endsWith("Exception"))
Expand Down

0 comments on commit 5c9b6ac

Please sign in to comment.