aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2019-08-27 05:51:51 +0000
committerGerrit Code Review <gerrit@onap.org>2019-08-27 05:51:51 +0000
commitcf543614765d41f49c8934e6d2b4a776b6bdff32 (patch)
treec9d6217a6028e938c34e50863da6206995ffc77d
parent4681b86743cfeb0ee075797c7628eeb916a5435b (diff)
parent18523825fc534151180b4c3bb2a3f335534edacf (diff)
Merge "Immediately return this expression instead of assigning it to the temporary variable "responseWrapper2""
-rw-r--r--vid-app-common/src/main/java/org/onap/vid/controller/ChangeManagementController.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/controller/ChangeManagementController.java b/vid-app-common/src/main/java/org/onap/vid/controller/ChangeManagementController.java
index 7bb94cb1c..cf855f3fe 100644
--- a/vid-app-common/src/main/java/org/onap/vid/controller/ChangeManagementController.java
+++ b/vid-app-common/src/main/java/org/onap/vid/controller/ChangeManagementController.java
@@ -4,6 +4,7 @@
* ================================================================================
* Copyright (C) 2017 - 2019 AT&T Intellectual Property. All rights reserved.
* Modifications Copyright (C) 2018 - 2019 Nokia. All rights reserved.
+ * Modifications Copyright (C) 2019 IBM.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -205,8 +206,7 @@ public class ChangeManagementController extends UnRestrictedBaseController {
private MsoResponseWrapperInterface exceptionHandler(Exception e, HttpStatus httpStatus) {
LOGGER.error(EELFLoggerDelegate.errorLogger, "{}: {}", getMethodName(), ExceptionUtils.getMessage(e), e);
- MsoResponseWrapper2<MsoExceptionResponse> responseWrapper2 = new MsoResponseWrapper2<>(httpStatus.value(), new MsoExceptionResponse(e));
- return responseWrapper2;
+ return new MsoResponseWrapper2<>(httpStatus.value(), new MsoExceptionResponse(e));
}
}