From 736c775bfc2cde38a53e4d43f858d3a3b6728c34 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Fri, 10 Oct 2014 00:01:22 +0200 Subject: Add missing @Override annotations --- sonar-home/src/main/java/org/sonar/home/cache/FileCache.java | 1 + sonar-home/src/main/java/org/sonar/home/log/Slf4jLog.java | 4 ++++ sonar-home/src/main/java/org/sonar/home/log/StandardLog.java | 4 ++++ 3 files changed, 9 insertions(+) (limited to 'sonar-home/src/main/java') diff --git a/sonar-home/src/main/java/org/sonar/home/cache/FileCache.java b/sonar-home/src/main/java/org/sonar/home/cache/FileCache.java index 37a81e17fcf..090546c21cf 100644 --- a/sonar-home/src/main/java/org/sonar/home/cache/FileCache.java +++ b/sonar-home/src/main/java/org/sonar/home/cache/FileCache.java @@ -209,6 +209,7 @@ public class FileCache { } private static final class LibFilter implements ZipUtils.ZipEntryFilter { + @Override public boolean accept(ZipEntry entry) { return entry.getName().startsWith("META-INF/lib"); } diff --git a/sonar-home/src/main/java/org/sonar/home/log/Slf4jLog.java b/sonar-home/src/main/java/org/sonar/home/log/Slf4jLog.java index e63be97f658..03ff7029ff8 100644 --- a/sonar-home/src/main/java/org/sonar/home/log/Slf4jLog.java +++ b/sonar-home/src/main/java/org/sonar/home/log/Slf4jLog.java @@ -38,18 +38,22 @@ public class Slf4jLog implements Log { return logger.isDebugEnabled(); } + @Override public void debug(String s) { logger.debug(s); } + @Override public void info(String s) { logger.info(s); } + @Override public void warn(String s) { logger.warn(s); } + @Override public void error(String s, Throwable throwable) { logger.error(s, throwable); } diff --git a/sonar-home/src/main/java/org/sonar/home/log/StandardLog.java b/sonar-home/src/main/java/org/sonar/home/log/StandardLog.java index bd221faf7c7..fa4402d15ca 100644 --- a/sonar-home/src/main/java/org/sonar/home/log/StandardLog.java +++ b/sonar-home/src/main/java/org/sonar/home/log/StandardLog.java @@ -20,15 +20,19 @@ package org.sonar.home.log; public class StandardLog implements Log { + @Override public void debug(String s) { } + @Override public void info(String s) { } + @Override public void warn(String s) { } + @Override public void error(String s, Throwable throwable) { } } -- cgit v1.2.3