aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorBruno Andrade <bruno@artsman.dev>2021-07-12 09:10:08 -0300
committersonartech <sonartech@sonarsource.com>2021-07-12 20:06:52 +0000
commit24327c11a52a01d3562eb78a0d4d99533decf543 (patch)
treeb3772a405bdfe2039c4f7b48d2077517adfdd688 /sonar-plugin-api
parentae5711e2ee6b6b809a015d9f934ed481fe78533f (diff)
downloadsonarqube-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.java4
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);
}
/**