anukalp2804 opened a new pull request, #17298:
URL: https://github.com/apache/iotdb/pull/17298

   ## Description
   
   This PR fixes `duplicate literals 7 times` and also solve the `Save and 
re-use this "Random"` reported by the sonarcloud analysis tool.These changes 
ensure the code follows the project's formatting guidelines.
   
   Changes:
   - replace the duplicate literals with constant
   - creates a single reusable Random instance as a class-level constant.
   
   
   ## Files modified:
   - `example/mqtt/src/main/java/org/apache/iotdb/mqtt/MQTTClient.java`.
   
   
   This change addresses a Sonar-reported duplicate literals for the show 
tables:
   
   - 
https://sonarcloud.io/project/issues?open=AZUoGM3z1Lhwncm5GF-A&id=apache_iotdb
   - 
https://sonarcloud.io/project/issues?open=AZUoGM3z1Lhwncm5GF-D&id=apache_iotdb
   
   
   This PR has:
   
   - [x] been self-reviewed.
   - [x] been built locally with `mvn spotless:apply`.
   - [x] been built locally with `mvn clean package -DskipTests`.
   - [x] been built locally with `mvn -pl iotdb-core -am test -DskipTests`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to