From b8873578ca545e2b6309c64a8ccbedc1803e48e1 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Tue, 23 Mar 2021 16:16:49 -0700 Subject: [PATCH] Add missing @Deprecated annotations --- .../springframework/boot/loader/archive/ExplodedArchive.java | 4 +++- .../springframework/boot/loader/archive/JarFileArchive.java | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/archive/ExplodedArchive.java b/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/archive/ExplodedArchive.java index f8042688274..170948b5d1b 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/archive/ExplodedArchive.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/archive/ExplodedArchive.java @@ -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 { } @Override + @Deprecated public Iterator iterator() { return new EntryIterator(this.root, this.recursive, null, null); } @@ -321,6 +322,7 @@ public class ExplodedArchive implements Archive { } @Override + @Deprecated public Iterator iterator() { return Collections.emptyIterator(); } diff --git a/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/archive/JarFileArchive.java b/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/archive/JarFileArchive.java index c43c179a206..73f62549a2c 100755 --- a/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/archive/JarFileArchive.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/archive/JarFileArchive.java @@ -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 { } @Override + @Deprecated public Iterator iterator() { return new EntryIterator(this.jarFile.iterator(), null, null); }