Skip to content

Commit eda25bb

Browse files
authored
Merge pull request github#5962 from erik-krogh/getAPrimaryQlClass
CPP/Java: Fix getAPrimaryQlClass implementations
2 parents ab73b10 + 79989cc commit eda25bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cpp/ql/src/semmle/code/cpp/Specifier.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class FunctionSpecifier extends Specifier {
3737
this.hasName("explicit")
3838
}
3939

40-
override string getAPrimaryQlClass() { result = "FunctionSpecifier)" }
40+
override string getAPrimaryQlClass() { result = "FunctionSpecifier" }
4141
}
4242

4343
/**

java/ql/src/semmle/code/java/Statement.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ class LabeledStmt extends Stmt, @labeledstmt {
739739
/** This statement's Halstead ID (used to compute Halstead metrics). */
740740
override string getHalsteadID() { result = this.getLabel() + ":" }
741741

742-
override string getAPrimaryQlClass() { result = "LabelStmt" }
742+
override string getAPrimaryQlClass() { result = "LabeledStmt" }
743743
}
744744

745745
/** An `assert` statement. */

0 commit comments

Comments
 (0)