Skip to content

Commit 812d959

Browse files
committed
Remove generic wildcard in various PomUtils things
1 parent 58eb49a commit 812d959

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/groovy/net/minecraftforge/gradleutils/PomUtils.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ public sealed interface PomUtils permits PomUtilsInternal {
3030
/// @see #getLicenses()
3131
sealed interface Licenses permits PomUtilsInternal.Licenses {
3232
/// @see <a href="https://spdx.org/licenses/Apache-2.0.html">Apache License 2.0 on SPDX</a>
33-
Action<? extends MavenPomLicense> Apache2_0 = PomUtilsInternal.makeLicense("Apache-2.0", "https://www.apache.org/licenses/LICENSE-2.0");
33+
Action<MavenPomLicense> Apache2_0 = PomUtilsInternal.makeLicense("Apache-2.0", "https://www.apache.org/licenses/LICENSE-2.0");
3434
/// @see <a href="https://spdx.org/licenses/LGPL-2.1-only.html">GNU Lesser General Public License v2.1 only on SPDX</a>
35-
Action<? extends MavenPomLicense> LGPLv2_1 = PomUtilsInternal.makeLicense("LGPL-2.1-only", "https://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html");
35+
Action<MavenPomLicense> LGPLv2_1 = PomUtilsInternal.makeLicense("LGPL-2.1-only", "https://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html");
3636
/// @see <a href="https://spdx.org/licenses/LGPL-3.0-only.html">GNU Lesser General Public License v3.0 only on SPDX</a>
37-
Action<? extends MavenPomLicense> LGPLv3 = PomUtilsInternal.makeLicense("LGPL-3.0-only", "https://www.gnu.org/licenses/lgpl-3.0-standalone.html");
37+
Action<MavenPomLicense> LGPLv3 = PomUtilsInternal.makeLicense("LGPL-3.0-only", "https://www.gnu.org/licenses/lgpl-3.0-standalone.html");
3838
/// @see <a href="https://spdx.org/licenses/MIT.html">MIT License on SPDX</a>
39-
Action<? extends MavenPomLicense> MIT = PomUtilsInternal.makeLicense("MIT", "https://opensource.org/license/mit/");
39+
Action<MavenPomLicense> MIT = PomUtilsInternal.makeLicense("MIT", "https://opensource.org/license/mit/");
4040
}
4141

4242
/// Contains several developers within the MinecraftForge organization to reduce needing to manually write them out

src/main/groovy/net/minecraftforge/gradleutils/PomUtilsInternal.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ default TypeOf<?> getPublicType() {
2828
}
2929
}
3030

31-
static Action<? extends MavenPomLicense> makeLicense(String name, String url) {
31+
static Action<MavenPomLicense> makeLicense(String name, String url) {
3232
return license -> {
3333
license.getName().set(name);
3434
license.getUrl().set(url);

0 commit comments

Comments
 (0)