docs: Include braces in concise code example
The style guide recommends that [braces are used](https://github.com/palantir/gradle-baseline/blob/develop/docs/java-style-guide/readme.md#braces-are-used-where-optional) with `if` statements even when it contains only a single statement. Update the concise code sample to follow this recommendation.
@@ -132,7 +132,9 @@ equivalent version below:
``` java
int myMethod(int parameter) {
- if (notValid(parameter)) return -1;
+ if (notValid(parameter)) {
+ return -1;
+ }
if (something()) {
return parameter;
