Commit a5c2e185 authored by Mathijs den Burger's avatar Mathijs den Burger Committed by Jeroen Hoffman

CMS-11137 [Back port to 11.2] CMS-10840 Don't use autoboxed booleans when not needed

Autoboxing is less efficient, and can lead to nasty
NullPointerExceptions when the returned object is null.

(cherry picked from commit 855e0676)
parent 4edbba2f
/*
* Copyright 2008-2017 Hippo B.V. (http://www.onehippo.com)
* Copyright 2008-2018 Hippo B.V. (http://www.onehippo.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -159,7 +159,7 @@ public class MixinPlugin extends RenderPlugin {
return control;
}
private static Boolean hasMixin(Node node, String type) throws RepositoryException {
private static boolean hasMixin(Node node, String type) throws RepositoryException {
if (!node.hasProperty("jcr:mixinTypes")) {
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment