Skip to content
Snippets Groups Projects
Commit 587af7fc authored by Thomas Mortagne's avatar Thomas Mortagne
Browse files

XWIKI-22726: Allow customizing the validation of HQL queries through configuration

* ignore sonar false positive

(cherry picked from commit d74a1af9)
parent d8dd6c58
No related branches found
No related tags found
No related merge requests found
...@@ -104,6 +104,10 @@ public class HqlQueryExecutor implements QueryExecutor, Initializable ...@@ -104,6 +104,10 @@ public class HqlQueryExecutor implements QueryExecutor, Initializable
@Inject @Inject
private Logger logger; private Logger logger;
// We don't need the content of safeNamedQueries to be thread safe since it's never modified after being initialized
// and the init is protected by a synchronized(). The volatile here is only used for the reference of that
// variable.
@SuppressWarnings("java:S3077")
private volatile Set<String> safeNamedQueries; private volatile Set<String> safeNamedQueries;
@Override @Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment