Skip to content

Commit

Permalink
Fix for issue #746
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Jun 18, 2024
1 parent 2432fe4 commit 1058d86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ private void processMethodSignature(Tree srcOperationNode, Tree dstOperationNode
new SameModifierMatcher(Constants.SYNCHRONIZED).match(srcOperationNode,dstOperationNode,mappingStore);
if (umlOperationBodyMapper.getOperation1().isNative() && umlOperationBodyMapper.getOperation2().isNative())
new SameModifierMatcher(Constants.NATIVE).match(srcOperationNode,dstOperationNode,mappingStore);
if (umlOperationBodyMapper.getOperation1().isDefault() && umlOperationBodyMapper.getOperation2().isDefault())
new SameModifierMatcher(Constants.DEFAULT).match(srcOperationNode,dstOperationNode,mappingStore);
String v1 = umlOperationBodyMapper.getOperation1().getVisibility().toString();
String v2 = umlOperationBodyMapper.getOperation2().getVisibility().toString();
Tree tree1 = TreeUtilFunctions.findChildByTypeAndLabel(srcOperationNode, Constants.MODIFIER, v1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public class Constants {
public static final String NATIVE = "native";
public static final String FINAL = "final";
public static final String STATIC = "static";
public static final String DEFAULT = "default";
public static final String EQUAL_OPERATOR = "=";

public static final String METHOD_INVOCATION_ARGUMENTS = "METHOD_INVOCATION_ARGUMENTS";
Expand Down

0 comments on commit 1058d86

Please sign in to comment.