Skip to content

Keep JSR-305 nullness annotations

68f5e29
Select commit
Loading
Failed to load commit list.
Open

Upgrade minimum JDK to 17 and migrate JavaX to Jakarta #17859

Keep JSR-305 nullness annotations
68f5e29
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Jun 8, 2026 in 7m 41s

Quality Gate failed

Failed conditions
C Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check warning on line 66 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v2/handler/QueryDataSetHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof QueryStatement querystatement'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNmJDiaSQly5slmX6&open=AZ6mNmJDiaSQly5slmX6&pullRequest=17859

Check warning on line 1216 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/DataNodeTableOperatorGenerator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this usage of 'Stream.collect(Collectors.toList())' with 'Stream.toList()' and ensure that the list is unmodified.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNl1siaSQly5slmVz&open=AZ6mNl1siaSQly5slmVz&pullRequest=17859

Check warning on line 176 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/execution/config/ConfigExecution.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof IoTDBException iotdbexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNlhBiaSQly5slmSw&open=AZ6mNlhBiaSQly5slmSw&pullRequest=17859

Check warning on line 60 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v2/handler/ExceptionHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof IllegalPathException illegalpathexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNmJQiaSQly5slmX-&open=AZ6mNmJQiaSQly5slmX-&pullRequest=17859

Check warning on line 883 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/DataNodeTableOperatorGenerator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Merge the previous cases into this one using comma-separated label.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNl1siaSQly5slmVs&open=AZ6mNl1siaSQly5slmVs&pullRequest=17859

Check warning on line 279 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/parser/scan/SinglePageWholeChunkReader.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Merge the previous cases into this one using comma-separated label.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNl6iiaSQly5slmWa&open=AZ6mNl6iiaSQly5slmWa&pullRequest=17859

Check warning on line 112 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/metadata/read/TimeSeriesCountNode.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this usage of 'Stream.collect(Collectors.toList())' with 'Stream.toList()' and ensure that the list is unmodified.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNlzdiaSQly5slmVm&open=AZ6mNlzdiaSQly5slmVm&pullRequest=17859

Check warning on line 286 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/parser/scan/SinglePageWholeChunkReader.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

A single-line comment should start with exactly two slashes, no more.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNl6iiaSQly5slmWb&open=AZ6mNl6iiaSQly5slmWb&pullRequest=17859

Check warning on line 1147 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/DataNodeTableOperatorGenerator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this usage of 'Stream.collect(Collectors.toList())' with 'Stream.toList()' and ensure that the list is unmodified.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNl1siaSQly5slmVx&open=AZ6mNl1siaSQly5slmVx&pullRequest=17859

Check warning on line 275 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/parser/scan/SinglePageWholeChunkReader.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Merge the previous cases into this one using comma-separated label.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNl6iiaSQly5slmWZ&open=AZ6mNl6iiaSQly5slmWZ&pullRequest=17859

Check warning on line 60 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v1/handler/ExceptionHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof IllegalPathException illegalpathexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNmHtiaSQly5slmXv&open=AZ6mNmHtiaSQly5slmXv&pullRequest=17859

Check warning on line 1242 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/DataNodeTableOperatorGenerator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "java.util.List.of()" instead.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNl1siaSQly5slmV0&open=AZ6mNl1siaSQly5slmV0&pullRequest=17859

Check warning on line 1401 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/DataNodeTableOperatorGenerator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Merge the previous cases into this one using comma-separated label.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNl1siaSQly5slmVt&open=AZ6mNl1siaSQly5slmVt&pullRequest=17859

Check warning on line 1243 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/DataNodeTableOperatorGenerator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "java.util.List.of()" instead.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNl1siaSQly5slmV1&open=AZ6mNl1siaSQly5slmV1&pullRequest=17859

Check warning on line 271 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/common/tsfile/parser/scan/SinglePageWholeChunkReader.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Merge the previous cases into this one using comma-separated label.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNl6iiaSQly5slmWY&open=AZ6mNl6iiaSQly5slmWY&pullRequest=17859

Check warning on line 51 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v2/handler/ExceptionHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof DatabaseNotSetException databasenotsetexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNmJQiaSQly5slmX8&open=AZ6mNmJQiaSQly5slmX8&pullRequest=17859

Check warning on line 51 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v1/handler/ExceptionHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof DatabaseNotSetException databasenotsetexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNmHtiaSQly5slmXt&open=AZ6mNmHtiaSQly5slmXt&pullRequest=17859

Check warning on line 176 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/execution/config/ConfigExecution.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof IoTDBException iotdbexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNlhBiaSQly5slmSv&open=AZ6mNlhBiaSQly5slmSv&pullRequest=17859

Check warning on line 1992 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/DataNodeTableOperatorGenerator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Merge the previous cases into this one using comma-separated label.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNl1siaSQly5slmVv&open=AZ6mNl1siaSQly5slmVv&pullRequest=17859

Check warning on line 48 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v1/handler/ExceptionHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof QueryProcessException queryprocessexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNmHtiaSQly5slmXs&open=AZ6mNmHtiaSQly5slmXs&pullRequest=17859

Check warning on line 48 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v2/handler/ExceptionHandler.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof QueryProcessException queryprocessexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNmJQiaSQly5slmX7&open=AZ6mNmJQiaSQly5slmX7&pullRequest=17859

Check warning on line 183 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/execution/config/ConfigExecution.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof IoTDBRuntimeException iotdbruntimeexception'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNlhBiaSQly5slmSz&open=AZ6mNlhBiaSQly5slmSz&pullRequest=17859

Check warning on line 113 in external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v1/impl/RestApiServiceImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this instanceof check and cast with 'instanceof CreateTableViewStatement createtableviewstatement'

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNmIFiaSQly5slmXy&open=AZ6mNmIFiaSQly5slmXy&pullRequest=17859

Check warning on line 1201 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/DataNodeTableOperatorGenerator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this usage of 'Stream.collect(Collectors.toList())' with 'Stream.toList()' and ensure that the list is unmodified.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNl1siaSQly5slmVy&open=AZ6mNl1siaSQly5slmVy&pullRequest=17859

Check warning on line 219 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/metadata/read/TimeSeriesSchemaScanNode.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this usage of 'Stream.collect(Collectors.toList())' with 'Stream.toList()' and ensure that the list is unmodified.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ6mNly0iaSQly5slmVk&open=AZ6mNly0iaSQly5slmVk&pullRequest=17859