From ae24911095334ccd1f90f226bd01897d4407b841 Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Mon, 3 Sep 2018 20:05:08 +0530 Subject: fixed sonar issue in WebSecurityConfigImpl.java fixed sonar issue detailed in SO-874 Issue-ID: SO-874 Change-Id: Ie14f5376566642d75123e23764bf6f7869861393 Signed-off-by: Sandeep J --- .../java/org/onap/so/adapters/catalogdb/WebSecurityConfigImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'adapters') diff --git a/adapters/mso-catalog-db-adapter/src/main/java/org/onap/so/adapters/catalogdb/WebSecurityConfigImpl.java b/adapters/mso-catalog-db-adapter/src/main/java/org/onap/so/adapters/catalogdb/WebSecurityConfigImpl.java index 144df5fe6a..2eb4858803 100644 --- a/adapters/mso-catalog-db-adapter/src/main/java/org/onap/so/adapters/catalogdb/WebSecurityConfigImpl.java +++ b/adapters/mso-catalog-db-adapter/src/main/java/org/onap/so/adapters/catalogdb/WebSecurityConfigImpl.java @@ -4,6 +4,8 @@ * ================================================================================ * Copyright (C) 2017 - 2018 AT&T Intellectual Property. All rights reserved. * ================================================================================ + * Modifications Copyright (C) 2018 IBM. + * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -36,7 +38,7 @@ public class WebSecurityConfigImpl extends WebSecurityConfig { http.csrf().disable() .authorizeRequests() .antMatchers("/manage/health","/manage/info").permitAll() - .antMatchers("/**").hasAnyRole(StringUtils.collectionToDelimitedString(getRoles(),",").toString()) + .antMatchers("/**").hasAnyRole(StringUtils.collectionToDelimitedString(getRoles(),",")) .and() .httpBasic(); } -- cgit 1.2.3-korg