diff --git a/java/ql/src/Security/CWE/CWE-094/InsecureBeanValidation.qhelp b/java/ql/src/Security/CWE/CWE-094/InsecureBeanValidation.qhelp
index 8ef851f08ad..cae6e77d980 100644
--- a/java/ql/src/Security/CWE/CWE-094/InsecureBeanValidation.qhelp
+++ b/java/ql/src/Security/CWE/CWE-094/InsecureBeanValidation.qhelp
@@ -12,17 +12,16 @@ untrusted) bean properties flow into the custom error message.
There are different approaches to remediate the issue:
-
-- Do not include validated bean properties in the custom error message.
-- Use parameterized messages instead of string concatenation. E.g:
+- Do not include validated bean properties in the custom error message.
+- Use parameterized messages instead of string concatenation. E.g:
``` java
HibernateConstraintValidatorContext context = constraintValidatorContext.unwrap( HibernateConstraintValidatorContext.class );
context.addMessageParameter( "foo", "bar" );
context.buildConstraintViolationWithTemplate( "My violation message contains a parameter {foo}").addConstraintViolation();
```
-- Sanitize the validated bean properties to make sure that there are no EL expressions. An example of valid sanitization
-logic can be found here.
-- Disable the EL interpolation and only use `ParameterMessageInterpolator`:
+- Sanitize the validated bean properties to make sure that there are no EL expressions.
+ An example of valid sanitization logic can be found here.
+- Disable the EL interpolation and only use `ParameterMessageInterpolator`:
``` java
Validator validator = Validation.byDefaultProvider()
.configure()
@@ -30,9 +29,8 @@ Validator validator = Validation.byDefaultProvider()
.buildValidatorFactory()
.getValidator();
```
-- Replace Hibernate-Validator with Apache BVal which in its latest version does not interpolate EL expressions by default.
-Note that this replacement may not be a simple drop-in replacement.
-
+- Replace Hibernate-Validator with Apache BVal which in its latest version does not interpolate EL expressions by default.
+ Note that this replacement may not be a simple drop-in replacement.