diff options
author | 2018-09-18 14:17:19 +0200 | |
---|---|---|
committer | 2018-09-18 14:17:19 +0200 | |
commit | 93adeb4a2503fbdb4d8e06d777a4aa836b28d720 (patch) | |
tree | 50d3ebaf9fcafb3d83213aeefbd1ee519295fc0d /datafile-commons/src/main/java | |
parent | f394594ec70aaf1eefa4f23b80226c3426dbc17a (diff) |
Security vulnerabilities corrections
*Improved imported libraries
*Fixed imported libraries in connection
of risk security
Change-Id: I28e6b22f8088f70cae431e6e99936cdb67e4cc0d
Issue-ID: DCAEGEN2-764
Signed-off-by: wasala <przemyslaw.wasala@nokia.com>
Diffstat (limited to 'datafile-commons/src/main/java')
-rw-r--r-- | datafile-commons/src/main/java/org/onap/dcaegen2/collectors/datafile/model/utils/HttpUtils.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/datafile-commons/src/main/java/org/onap/dcaegen2/collectors/datafile/model/utils/HttpUtils.java b/datafile-commons/src/main/java/org/onap/dcaegen2/collectors/datafile/model/utils/HttpUtils.java index af41b356..91cc3c69 100644 --- a/datafile-commons/src/main/java/org/onap/dcaegen2/collectors/datafile/model/utils/HttpUtils.java +++ b/datafile-commons/src/main/java/org/onap/dcaegen2/collectors/datafile/model/utils/HttpUtils.java @@ -18,13 +18,13 @@ package org.onap.dcaegen2.collectors.datafile.model.utils; -import org.apache.http.HttpStatus; +import org.springframework.http.HttpStatus; -public final class HttpUtils implements HttpStatus { +public final class HttpUtils { private HttpUtils() {} public static boolean isSuccessfulResponseCode(Integer statusCode) { - return statusCode >= 200 && statusCode < 300; + return statusCode >= HttpStatus.OK.value() && statusCode < HttpStatus.MULTIPLE_CHOICES.value(); } } |