palashborhanuddin / RefactoringMatcher

0 stars 0 forks source link

Consider Throw as action node #12

Closed palashborhanuddin closed 2 years ago

palashborhanuddin commented 2 years ago
public static void throwsTest() throws IllegalAccessException {
        String ss = "string";
        if (ss.length() == 0) {
            throw new IllegalAccessException("demo");
        }
    }

Following groum formed for the above code snippet:

nodes=[2 String.length, 1 IF, 4 IllegalAccessException.<init>, 3 THROW],
edges=[2 String.length-->1 IF
, 4 IllegalAccessException.<init>-->3 THROW
, 1 IF-->4 IllegalAccessException.<init>
]