diff options
author | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2015-06-19 15:31:30 +0200 |
---|---|---|
committer | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2015-06-19 15:31:30 +0200 |
commit | 51f9e345101fc78a78168e98fdebc61d0575ac57 (patch) | |
tree | 42abffaba5235e4fa53cd8c7162418580ad15b37 /sonar-plugin-api/src | |
parent | 9fa75d373ebdc08bdaeb4f5696a2903b1167c89f (diff) | |
download | sonarqube-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.java | 7 |
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; } |