Skip to content

Commit b8a694c

Browse files
committed
Address review comments
1 parent d3eb4f8 commit b8a694c

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

java/ql/src/Performance/InefficientEmptyStringTest.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
* @precision high
77
* @id java/inefficient-empty-string-test
88
* @tags quality
9-
* reliability
10-
* performance
9+
* maintainability
10+
* readability
1111
*/
1212

1313
import java

java/ql/src/Performance/InnerClassCouldBeStatic.ql

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
* @precision high
88
* @id java/non-static-nested-class
99
* @tags quality
10-
* reliability
11-
* performance
12-
* efficiency
10+
* maintainability
11+
* readability
1312
*/
1413

1514
import java

java/ql/src/Performance/NewStringString.ql

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
* @precision high
88
* @id java/inefficient-string-constructor
99
* @tags quality
10-
* reliability
11-
* performance
12-
* efficiency
10+
* maintainability
11+
* readability
1312
*/
1413

1514
import java

java/ql/src/change-notes/2025-06-17-add-tags-to-quality-queries.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ category: queryMetadata
33
---
44
* The tag `quality` has been added to multiple Java quality queries for consistency. They have all been given a tag for one of the two top-level categories `reliability` or `maintainability`, and a tag for a sub-category. See [Query file metadata and alert message style guide](https://github.com/github/codeql/blob/main/docs/query-metadata-style-guide.md#quality-query-sub-category-tags) for more information about these categories.
55
* The tag `external/cwe/cwe-571` has been added to `java/equals-on-unrelated-types`.
6-
* The tag `readability` has been added to `java/missing-override-annotation`, `java/deprecated-call`, `java/inconsistent-javadoc-throws`, `java/unknown-javadoc-parameter`, `java/jdk-internal-api-access`, `java/underscore-identifier`, `java/misleading-indentation`, `java/constants-only-interface` and .
6+
* The tag `readability` has been added to `java/missing-override-annotation`, `java/deprecated-call`, `java/inconsistent-javadoc-throws`, `java/unknown-javadoc-parameter`, `java/jdk-internal-api-access`, `java/underscore-identifier`, `java/misleading-indentation`, `java/inefficient-empty-string-test`, `java/non-static-nested-class`, `inefficient-string-constructor`, and `java/constants-only-interface`.
77
* The tag `useless-code` has been added to `java/useless-type-test`, and `java/useless-tostring-call`.
88
* The tag `complexity` has been added to `java/chained-type-tests`, and `java/abstract-to-concrete-cast`.
99
* The tag `error-handling` has been added to `java/ignored-error-status-of-call`, and `java/uncaught-number-format-exception`.
1010
* The tag `correctness` has been added to `java/evaluation-to-constant`, `java/whitespace-contradicts-precedence`, `java/empty-container`, `java/string-buffer-char-init`, `java/call-to-object-tostring`, `java/print-array` and `java/internal-representation-exposure`.
11-
* The tag `performance` has been added to `java/input-resource-leak`, `java/database-resource-leak`, `java/output-resource-leak`, `java/inefficient-empty-string-test`, `java/inefficient-key-set-iterator`, `java/inefficient-output-stream`, `java/inefficient-boxed-constructor`, `java/non-static-nested-class`, and `java/inefficient-string-constructor`.
11+
* The tag `performance` has been added to `java/input-resource-leak`, `java/database-resource-leak`, `java/output-resource-leak`, `java/inefficient-key-set-iterator`, `java/inefficient-output-stream`, and `java/inefficient-boxed-constructor`.
1212
* The tag `correctness` has been removed from `java/call-to-thread-run`, `java/unsafe-double-checked-locking`, `java/unsafe-double-checked-locking-init-order`, `java/non-sync-override`, `java/sync-on-boxed-types`, `java/unsynchronized-getter`, `java/input-resource-leak`, `java/output-resource-leak`, `java/database-resource-leak`, and `java/ignored-error-status-of-call`.
13-
* The tags `maintainability` has been removed from `java/string-buffer-char-init`, `java/inefficient-key-set-iterator`, `java/inefficient-boxed-constructor`, `java/non-static-nested-class`, `java/inefficient-string-constructor`, `java/internal-representation-exposure`, and `java/inefficient-empty-string-test`.
13+
* The tags `maintainability` has been removed from `java/string-buffer-char-init`, `java/inefficient-key-set-iterator`, `java/inefficient-boxed-constructor`, and `java/internal-representation-exposure`.
1414
* The tags `reliability` has been removed from `java/subtle-inherited-call`, `java/print-array`, and `java/call-to-object-tostring`.
1515
* The tags `maintainability` and `useless-code` have been removed from `java/evaluation-to-constant`.
1616
* The tags `maintainability` and `readability` have been removed from `java/whitespace-contradicts-precedence`.

0 commit comments

Comments
 (0)