Browse Source

Add missing @Deprecated annotations

pull/26093/head
Phillip Webb 5 years ago
parent
commit
b8873578ca
  1. 4
      spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/archive/ExplodedArchive.java
  2. 3
      spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/archive/JarFileArchive.java

4
spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/archive/ExplodedArchive.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2012-2020 the original author or authors.
* Copyright 2012-2021 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.
@ -103,6 +103,7 @@ public class ExplodedArchive implements Archive { @@ -103,6 +103,7 @@ public class ExplodedArchive implements Archive {
}
@Override
@Deprecated
public Iterator<Entry> iterator() {
return new EntryIterator(this.root, this.recursive, null, null);
}
@ -321,6 +322,7 @@ public class ExplodedArchive implements Archive { @@ -321,6 +322,7 @@ public class ExplodedArchive implements Archive {
}
@Override
@Deprecated
public Iterator<Entry> iterator() {
return Collections.emptyIterator();
}

3
spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/archive/JarFileArchive.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2012-2020 the original author or authors.
* Copyright 2012-2021 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.
@ -81,6 +81,7 @@ public class JarFileArchive implements Archive { @@ -81,6 +81,7 @@ public class JarFileArchive implements Archive {
}
@Override
@Deprecated
public Iterator<Entry> iterator() {
return new EntryIterator(this.jarFile.iterator(), null, null);
}

Loading…
Cancel
Save