Added sonar exceptions.

Signed-off-by: Kai Zimmermann <kai.zimmermann@bosch-si.com>
This commit is contained in:
Kai Zimmermann
2016-06-02 08:50:37 +02:00
parent 935ca2f963
commit 5d17a7d5c3
5 changed files with 14 additions and 0 deletions

View File

@@ -64,6 +64,8 @@ public class SystemSecurityContext {
* the callable to call within the system security context
* @return the return value of the {@link Callable#call()} method.
*/
// Exception squid:S2221 - Callable declares Exception
@SuppressWarnings("squid:S2221")
public <T> T runAsSystem(final Callable<T> callable) {
final SecurityContext oldContext = SecurityContextHolder.getContext();
try {