File tree Expand file tree Collapse file tree 4 files changed +1
-9
lines changed
src/main/java/no/digipost/signature/client/core/internal Expand file tree Collapse file tree 4 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ Licensed under Apache 2 - http://www.apache.org/licenses/LICENSE-2.0.html
99This software includes third party software subject to the following licenses:
1010
1111 Apache Commons Codec under Apache License, Version 2.0
12- Apache Commons Lang under Apache License, Version 2.0
1312 Apache HttpClient under Apache License, Version 2.0
1413 Apache HttpComponents Core HTTP/1.1 under Apache License, Version 2.0
1514 Apache HttpComponents Core HTTP/2 under Apache License, Version 2.0
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ Licensed under Apache 2 - http://www.apache.org/licenses/LICENSE-2.0.html
99This software includes third party software subject to the following licenses:
1010
1111 Apache Commons Codec under Apache License, Version 2.0
12- Apache Commons Lang under Apache License, Version 2.0
1312 Apache HttpClient under Apache License, Version 2.0
1413 Apache HttpComponents Core HTTP/1.1 under Apache License, Version 2.0
1514 Apache HttpComponents Core HTTP/2 under Apache License, Version 2.0
Original file line number Diff line number Diff line change 8686 <artifactId >commons-codec</artifactId >
8787 <version >1.15</version >
8888 </dependency >
89- <dependency >
90- <groupId >org.apache.commons</groupId >
91- <artifactId >commons-lang3</artifactId >
92- <version >3.12.0</version >
93- </dependency >
9489
9590 <dependency >
9691 <groupId >org.slf4j</groupId >
Original file line number Diff line number Diff line change 77import no .digipost .signature .client .core .internal .http .ResponseStatus ;
88import no .digipost .signature .client .core .internal .http .StatusCode ;
99import no .digipost .signature .client .core .internal .xml .Marshalling ;
10- import org .apache .commons .lang3 .StringUtils ;
1110import org .apache .hc .core5 .http .ClassicHttpResponse ;
1211import org .apache .hc .core5 .http .ContentType ;
1312import org .apache .hc .core5 .http .HttpHeaders ;
@@ -63,7 +62,7 @@ static XMLError extractError(ClassicHttpResponse response) {
6362 }
6463 throw new UnexpectedResponseException (
6564 HttpHeaders .CONTENT_TYPE + " " + contentType .map (ContentType ::getMimeType ).orElse ("unknown" ) + ": " +
66- Optional .ofNullable (errorAsString ).filter (StringUtils :: isNoneBlank ).orElse ("<no content in response>" ),
65+ Optional .ofNullable (errorAsString ).filter (s -> ! s . trim (). isEmpty () ).orElse ("<no content in response>" ),
6766 ResponseStatus .fromHttpResponse (response ).get (), StatusCode .OK );
6867 }
6968 return error ;
You can’t perform that action at this time.
0 commit comments