Skip to content

Commit

Permalink
XWIKI-22726: Allow customizing the validation of HQL queries through …
Browse files Browse the repository at this point in the history
…configuration (#3747)

* ignore Sonar false positive

(cherry picked from commit 494f8ec)
  • Loading branch information
tmortagne committed Dec 16, 2024
1 parent 5cd50f7 commit 37d8916
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,10 @@ public static Query toCompleteQuery(Query query)
Query completeQuery = query;

String completeStatement = toCompleteStatement(query.getStatement());
if (completeStatement != query.getStatement()) {
// Check of toCompleteStatement returned a different String (which means it completed it)
@SuppressWarnings("java:S4973")
boolean isCompleted = completeStatement != query.getStatement();
if (isCompleted) {
completeQuery = new WrappingQuery(query)
{
@Override
Expand Down

0 comments on commit 37d8916

Please sign in to comment.