S6909: Constant parameters in a PreparedStatement should not be set more than once

Description

From ecoCode Java Rule: https://github.com/cnumr/ecoCode/blob/main/src/java-plugin/src/main/java/fr/cnumr/java/checks/AvoidSetConstantInBatchUpdate.java

When using PreparedStatement constant values should not be set more than once; when possible they should be hardcoded.

Noncompliant example:

[Low Impact-Low Effort]

Activity

Done
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Components

Fix versions

Priority

Sentry

Created February 6, 2024 at 3:19 PM
Updated October 16, 2024 at 2:06 PM
Resolved February 23, 2024 at 11:15 AM