Skip to content

Commit

Permalink
Clean up warnings in Gradle build
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Feb 12, 2025
1 parent 6174055 commit 440a259
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2024 the original author or authors.
* Copyright 2002-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -422,6 +422,7 @@ void proxyTargetClassInCaseOfNoInterfaces() {
}

@Test // SPR-13328
@SuppressWarnings("unchecked")
void varargsWithEnumArray() {
ProxyFactory proxyFactory = new ProxyFactory(new MyBean());
MyBean proxy = (MyBean) proxyFactory.getProxy();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2024 the original author or authors.
* Copyright 2002-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -141,6 +141,7 @@ void equalsAndHashCodeDefined() {
}

@Test // SPR-13328
@SuppressWarnings("unchecked")
void varargsWithEnumArray() {
ProxyFactory proxyFactory = new ProxyFactory(new VarargTestBean());
VarargTestInterface proxy = (VarargTestInterface) proxyFactory.getProxy();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2024 the original author or authors.
* Copyright 2002-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -218,12 +218,12 @@ public String doWork() {
}


@SuppressWarnings("serial")
private static class MyProblemDetail extends ProblemDetail {

public MyProblemDetail(HttpStatus status) {
super(status.value());
}

}

}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2024 the original author or authors.
* Copyright 2002-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -839,12 +839,12 @@ SimpleBean getSimpleBean() {
}


@SuppressWarnings("serial")
private static class MyProblemDetail extends ProblemDetail {

public MyProblemDetail(HttpStatus status) {
super(status.value());
}

}


Expand Down

0 comments on commit 440a259

Please sign in to comment.