aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-06-19 15:31:30 +0200
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-06-19 15:31:30 +0200
commit51f9e345101fc78a78168e98fdebc61d0575ac57 (patch)
tree42abffaba5235e4fa53cd8c7162418580ad15b37 /sonar-plugin-api/src
parent9fa75d373ebdc08bdaeb4f5696a2903b1167c89f (diff)
downloadsonarqube-51f9e345101fc78a78168e98fdebc61d0575ac57.tar.gz
sonarqube-51f9e345101fc78a78168e98fdebc61d0575ac57.zip
fix quality flaws
- add static inner class - make methods static - declare one field by line
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/utils/ZipUtils.java7
1 files changed, 1 insertions, 6 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 45903251411..1e33ff929e5 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
@@ -65,12 +65,7 @@ public final class ZipUtils {
}
public static File unzip(InputStream zip, File toDir) throws IOException {
- unzip(zip, toDir, new ZipEntryFilter() {
- @Override
- public boolean accept(ZipEntry entry) {
- return true;
- }
- });
+ unzip(zip, toDir, TrueZipEntryFilter.INSTANCE);
return toDir;
}