Skip to content

Commit

Permalink
chore(warnings): make operator precedence explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
dreynaud committed Jan 31, 2018
1 parent bf35e28 commit 4322619
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public static RenderContext createDefaultRenderContext(PipelineTemplate template
RenderContext context = new DefaultRenderContext(configuration.getPipeline().getApplication(), template, trigger);
if (template != null && template.getVariables() != null) {
template.getVariables().stream()
.filter(v -> v.isNullable() && v.getDefaultValue() == null || v.hasDefaultValue())
.filter(v -> (v.isNullable() && v.getDefaultValue() == null) || v.hasDefaultValue())
.forEach(v -> context.getVariables().put(v.getName(), v.getDefaultValue()));
}
if (configuration.getPipeline().getVariables() != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public enum Severity {
WARN
}

@SuppressWarnings("JavaLangClash")
public static class Error {
Severity severity = Severity.FATAL;
String message;
Expand Down

0 comments on commit 4322619

Please sign in to comment.