Remove code deprecated in 2.x and add since and forRemoval attributes
Closes gh-32548 Closes gh-32549
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
* Copyright 2012-2022 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.
|
||||
@@ -59,10 +59,10 @@ abstract class AbstractArchiveIntegrationTests {
|
||||
}
|
||||
|
||||
protected AssertProvider<JarAssert> jar(File file) {
|
||||
return new AssertProvider<JarAssert>() {
|
||||
return new AssertProvider<>() {
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "2.3.0", forRemoval = false)
|
||||
public JarAssert assertThat() {
|
||||
return new JarAssert(file);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
* Copyright 2012-2022 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.
|
||||
@@ -114,10 +114,10 @@ class BuildInfoIntegrationTests {
|
||||
}
|
||||
|
||||
private AssertProvider<BuildInfoAssert> buildInfo(File project, String buildInfo) {
|
||||
return new AssertProvider<BuildInfoAssert>() {
|
||||
return new AssertProvider<>() {
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "2.3.0", forRemoval = false)
|
||||
public BuildInfoAssert assertThat() {
|
||||
return new BuildInfoAssert(new File(project, buildInfo));
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
* Copyright 2012-2022 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.
|
||||
@@ -58,7 +58,7 @@ public class PropertiesMergingResourceTransformer implements ReproducibleResourc
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "2.4.0", forRemoval = false)
|
||||
public void processResource(String resource, InputStream inputStream, List<Relocator> relocators)
|
||||
throws IOException {
|
||||
processResource(resource, inputStream, relocators, 0);
|
||||
|
||||
Reference in New Issue
Block a user