Skip to content

Commit 28338eb

Browse files
Java: PrintAst: Various minor fixes of typos
Fix references to C# Fix getAPrimaryQlClass for JavadocTag Fix typo for Import Update test outputs
1 parent 53ab8da commit 28338eb

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

java/ql/src/printAst.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @name Print AST
33
* @description Outputs a representation of a file's Abstract Syntax Tree. This
44
* query is used by the VS Code extension.
5-
* @id csharp/print-ast
5+
* @id java/print-ast
66
* @kind graph
77
* @tags ide-contextual-queries/print-ast
88
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class ImportOnDemandFromType extends Import {
5151

5252
override string toString() { result = "import " + this.getTypeHoldingImport().toString() + ".*" }
5353

54-
override string getAPrimaryQlClass() { result = "ImportOnDemandFromTypw" }
54+
override string getAPrimaryQlClass() { result = "ImportOnDemandFromType" }
5555
}
5656

5757
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class JavadocTag extends JavadocElement, JavadocParent, @javadocTag {
9292
/** Gets the text associated with this Javadoc tag. */
9393
override string getText() { result = this.getChild(0).toString() }
9494

95-
override string getAPrimaryQlClass() { result = "Javadoc" }
95+
override string getAPrimaryQlClass() { result = "JavadocTag" }
9696
}
9797

9898
/** A Javadoc `@param` tag. */

java/ql/src/semmle/code/java/PrintAst.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @name Print AST
33
* @description Outputs a representation of the Abstract Syntax Tree.
4-
* @id csharp/print-ast
4+
* @id java/print-ast
55
* @kind graph
66
*/
77

java/ql/test/library-tests/javadoc/PrintAst.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ javadoc/Test.java:
2424
# 18| 6: [Method] h
2525
#-----| 0: (Javadoc)
2626
# 17| 1: [Javadoc] /** @deprecated */
27-
# 17| 0: [Javadoc] @deprecated
27+
# 17| 0: [JavadocTag] @deprecated
2828
# 18| 3: [TypeAccess] void
2929
# 18| 5: [BlockStmt] stmt

java/ql/test/library-tests/printAst/PrintAst.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A.java:
66
# 1| 0: [JavadocText] Another javadoc
77
# 3| 2: [Javadoc] /** A class ... */
88
# 4| 0: [JavadocText] A class
9-
# 6| 1: [Javadoc] @author
9+
# 6| 1: [JavadocTag] @author
1010
# 6| 0: [JavadocText] someone
1111
# 9| 3: [Interface] Ann1
1212
# 10| 1: [Method] value

0 commit comments

Comments
 (0)