Refactoring

This commit is contained in:
megala21 2017-10-09 21:17:59 +05:30
parent a1806eb87e
commit b32c59b840

View File

@ -184,8 +184,7 @@ public class APIUtil {
synchronized (APIUtil.class) {
if (categoryManager == null) {
PrivilegedCarbonContext ctx = PrivilegedCarbonContext.getThreadLocalCarbonContext();
categoryManager = (CategoryManager) ctx
.getOSGiService(CategoryManager.class, null);
categoryManager = (CategoryManager) ctx.getOSGiService(CategoryManager.class, null);
if (categoryManager == null) {
String msg = "Category Manager service has not initialized.";
log.error(msg);