diff options
author | Bruno Andrade <bruno@artsman.dev> | 2021-07-12 09:10:08 -0300 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-07-12 20:06:52 +0000 |
commit | 24327c11a52a01d3562eb78a0d4d99533decf543 (patch) | |
tree | b3772a405bdfe2039c4f7b48d2077517adfdd688 /sonar-plugin-api | |
parent | ae5711e2ee6b6b809a015d9f934ed481fe78533f (diff) | |
download | sonarqube-24327c11a52a01d3562eb78a0d4d99533decf543.tar.gz sonarqube-24327c11a52a01d3562eb78a0d4d99533decf543.zip |
Code smell fix: Remove redundant casts
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/utils/ZipUtils.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/ZipUtils.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/ZipUtils.java index 3b311f22cce..54f511321c6 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/ZipUtils.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/ZipUtils.java @@ -56,11 +56,11 @@ public final class ZipUtils { * @return the target directory */ public static File unzip(File zip, File toDir) throws IOException { - return unzip(zip, toDir, (Predicate<ZipEntry>) ze -> true); + return unzip(zip, toDir, ze -> true); } public static File unzip(InputStream zip, File toDir) throws IOException { - return unzip(zip, toDir, (Predicate<ZipEntry>) ze -> true); + return unzip(zip, toDir, ze -> true); } /** |