Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
* @param parts multipart values
* @param stream streaming body metadata
*/
@SuppressWarnings("PMD.ReturnEmptyCollectionRatherThanNull")
public record HttpExchangeBody(String contentType, String encoding, String value, Long size, Boolean truncated,
List<HttpExchangeNameValue> form, List<HttpExchangeBodyPart> parts,
HttpExchangeStream stream) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
* @param size the original body size
* @param truncated true when the body was truncated
*/
@SuppressWarnings("PMD.ReturnEmptyCollectionRatherThanNull")
public record HttpExchangeBodyPart(String name, String fileName, List<HttpExchangeNameValue> headers,
String contentType, String encoding, String value, Long size,
Boolean truncated) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import java.util.List;
import java.util.Objects;

@SuppressWarnings("PMD.ReturnEmptyCollectionRatherThanNull")
final class HttpExchangeProcessor {

private static final String ENCODING_UTF8 = "utf8";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
* @param body the request body
* @param trailers the request trailers
*/
@SuppressWarnings("PMD.ReturnEmptyCollectionRatherThanNull")
public record HttpExchangeRequest(String method, String url, String httpVersion,
List<HttpExchangeCookie> cookies, List<HttpExchangeNameValue> headers,
List<HttpExchangeNameValue> query, HttpExchangeBody body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
* @param trailers the response trailers
* @param informationalResponses the informational responses
*/
@SuppressWarnings("PMD.ReturnEmptyCollectionRatherThanNull")
public record HttpExchangeResponse(Integer status, String statusText, String httpVersion,
List<HttpExchangeCookie> cookies, List<HttpExchangeNameValue> headers,
HttpExchangeBody body, List<HttpExchangeNameValue> trailers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public void clear() {
private static final class Context extends InheritableThreadLocal<ContextStack> {

@Override
public ContextStack initialValue() {
protected ContextStack initialValue() {
return singletonStack(new AllureExecutionContext());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,6 @@ public static Link createLink(final io.qameta.allure.TmsLink link) {
* @param type the event or label type
* @return the link
*/
@SuppressWarnings("PMD.UseObjectForClearerAPI")
public static Link createLink(final String value, final String name,
final String url, final String type) {
final String resolvedName = firstNonEmpty(value).orElse(name);
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ configure(libs) {
val orgSlf4jVersion = "2.0.18"
val aspectJVersion = "1.9.25.1"
val checkstyleVersion = "12.3.1"
val pmdVersion = "7.25.0"
val pmdVersion = "7.27.0"
val spotbugsVersion = "4.10.4"

dependencies {
Expand Down