-
Bug
-
Resolution: Done
-
Major
-
24.0.0.Beta1
-
None
The following code points do an int calc but assign to a double or long. The cast should be done in calc. Refer to https://rules.sonarsource.com/java/RSPEC-2184
Double
- https://github.com/wildfly/wildfly/blob/24.0.0.Beta1/clustering/infinispan/spi/src/main/java/org/wildfly/clustering/infinispan/spi/persistence/IndexedKeyFormatMapper.java#L52
- https://github.com/wildfly/wildfly/blob/24.0.0.Beta1/legacy/messaging/src/main/java/org/jboss/as/messaging/MessagingTransformers.java#L170 (BigDecimal double issue)
Long
- https://github.com/wildfly/wildfly/blob/24.0.0.Beta1/connector/src/main/java/org/jboss/as/connector/services/workmanager/StatisticsExecutorImpl.java#L86 (more than one)
- https://github.com/wildfly/wildfly/blob/24.0.0.Beta1/undertow/src/main/java/org/wildfly/extension/undertow/WebHostService.java#L74
- https://github.com/wildfly/wildfly/blob/24.0.0.Beta1/undertow/src/main/java/org/wildfly/extension/undertow/handlers/FileHandler.java#L125