diff options
Diffstat (limited to 'src/core/lombok/extern')
-rw-r--r-- | src/core/lombok/extern/apachecommons/CommonsLog.java (renamed from src/core/lombok/extern/apachecommons/Log.java) | 30 | ||||
-rw-r--r-- | src/core/lombok/extern/java/Log.java (renamed from src/core/lombok/extern/jul/Log.java) | 28 | ||||
-rw-r--r-- | src/core/lombok/extern/log4j/Log4j.java (renamed from src/core/lombok/extern/log4j/Log.java) | 30 | ||||
-rw-r--r-- | src/core/lombok/extern/slf4j/Slf4j.java (renamed from src/core/lombok/extern/slf4j/Log.java) | 30 |
4 files changed, 19 insertions, 99 deletions
diff --git a/src/core/lombok/extern/apachecommons/Log.java b/src/core/lombok/extern/apachecommons/CommonsLog.java index 87e7ab2c..452f97f0 100644 --- a/src/core/lombok/extern/apachecommons/Log.java +++ b/src/core/lombok/extern/apachecommons/CommonsLog.java @@ -30,7 +30,7 @@ import java.lang.annotation.Target; * Causes lombok to generate a logger field. * Example: * <pre> - * @Log + * @CommonsLog * public class LogExample { * } * </pre> @@ -43,35 +43,15 @@ import java.lang.annotation.Target; * } * </pre> * - * If you do not want to use the annotated class as the logger parameter, you can specify an alternate class. - * Example: - * <pre> - * @Log(java.util.List.class) - * public class LogExample { - * } - * </pre> - * - * will generate: - * - * <pre> - * public class LogExample { - * private static final org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(java.util.List.class); - * } - * </pre> - * * This annotation is valid for classes and enumerations.<br /> * * @see org.apache.commons.logging.Log org.apache.commons.logging.Log * @see org.apache.commons.logging.LogFactory#getLog(java.lang.Class) org.apache.commons.logging.LogFactory.getLog(Class target) - * @see lombok.extern.jul.Log lombok.extern.jul.Log - * @see lombok.extern.log4j.Log lombok.extern.log4j.Log - * @see lombok.extern.slf4j.Log lombok.extern.slf4j.Log + * @see lombok.extern.java.Log @Log + * @see lombok.extern.log4j.Log4j @Log4j + * @see lombok.extern.slf4j.Slf4j @Slf4j */ @Retention(RetentionPolicy.SOURCE) @Target(ElementType.TYPE) -public @interface Log { - /** - * If you do not want to use the annotated class as the logger parameter, you can specify an alternate class here. - */ - Class<?> value() default void.class; +public @interface CommonsLog { }
\ No newline at end of file diff --git a/src/core/lombok/extern/jul/Log.java b/src/core/lombok/extern/java/Log.java index 8b2ec3af..e6e01736 100644 --- a/src/core/lombok/extern/jul/Log.java +++ b/src/core/lombok/extern/java/Log.java @@ -19,7 +19,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -package lombok.extern.jul; +package lombok.extern.java; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; @@ -43,34 +43,14 @@ import java.lang.annotation.Target; * } * </pre> * - * If you do not want to use the annotated class as the logger parameter, you can specify an alternate class. - * Example: - * <pre> - * @Log(java.util.List.class) - * public class LogExample { - * } - * </pre> - * - * will generate: - * - * <pre> - * public class LogExample { - * private static final java.util.logging.Logger log = java.util.logging.Logger.getLogger(java.util.List.class.getName()); - * } - * </pre> - * * This annotation is valid for classes and enumerations.<br /> * @see java.util.logging.Logger java.util.logging.Logger * @see java.util.logging.Logger#getLogger(java.lang.String) java.util.logging.Logger.getLogger(String name) - * @see lombok.extern.apachecommons.Log lombok.extern.apachecommons.Log - * @see lombok.extern.log4j.Log lombok.extern.log4j.Log - * @see lombok.extern.slf4j.Log lombok.extern.slf4j.Log + * @see lombok.extern.apachecommons.CommonsLog @CommonsLog + * @see lombok.extern.log4j.Log4j @Log4j + * @see lombok.extern.slf4j.Slf4j @Slf4j */ @Retention(RetentionPolicy.SOURCE) @Target(ElementType.TYPE) public @interface Log { - /** - * If you do not want to use the annotated class as the logger parameter, you can specify an alternate class here. - */ - Class<?> value() default void.class; }
\ No newline at end of file diff --git a/src/core/lombok/extern/log4j/Log.java b/src/core/lombok/extern/log4j/Log4j.java index 9d07f46d..eeaf80be 100644 --- a/src/core/lombok/extern/log4j/Log.java +++ b/src/core/lombok/extern/log4j/Log4j.java @@ -30,7 +30,7 @@ import java.lang.annotation.Target; * Causes lombok to generate a logger field. * Example: * <pre> - * @Log + * @Log4j * public class LogExample { * } * </pre> @@ -43,35 +43,15 @@ import java.lang.annotation.Target; * } * </pre> * - * If you do not want to use the annotated class as the logger parameter, you can specify an alternate class. - * Example: - * <pre> - * @Log(java.util.List.class) - * public class LogExample { - * } - * </pre> - * - * will generate: - * - * <pre> - * public class LogExample { - * private static final org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(java.util.List.class); - * } - * </pre> - * * This annotation is valid for classes and enumerations.<br /> * * @see org.apache.log4j.Logger org.apache.log4j.Logger * @see org.apache.log4j.Logger#getLogger(java.lang.Class) org.apache.log4j.Logger.getLogger(Class target) - * @see lombok.extern.apachecommons.Log lombok.extern.apachecommons.Log - * @see lombok.extern.jul.Log lombok.extern.jul.Log - * @see lombok.extern.slf4j.Log lombok.extern.slf4j.Log + * @see lombok.extern.apachecommons.CommonsLog @CommonsLog + * @see lombok.extern.java.Log @Log + * @see lombok.extern.slf4j.Slf4j @Slf4j */ @Retention(RetentionPolicy.SOURCE) @Target(ElementType.TYPE) -public @interface Log { - /** - * If you do not want to use the annotated class as the logger parameter, you can specify an alternate class here. - */ - Class<?> value() default void.class; +public @interface Log4j { }
\ No newline at end of file diff --git a/src/core/lombok/extern/slf4j/Log.java b/src/core/lombok/extern/slf4j/Slf4j.java index 63307008..4986fd0c 100644 --- a/src/core/lombok/extern/slf4j/Log.java +++ b/src/core/lombok/extern/slf4j/Slf4j.java @@ -29,7 +29,7 @@ import java.lang.annotation.Target; * Causes lombok to generate a logger field. * Example: * <pre> - * @Log + * @Slf4j * public class LogExample { * } * </pre> @@ -42,34 +42,14 @@ import java.lang.annotation.Target; * } * </pre> * - * If you do not want to use the annotated class as the logger parameter, you can specify an alternate class. - * Example: - * <pre> - * @Log(java.util.List.class) - * public class LogExample { - * } - * </pre> - * - * will generate: - * - * <pre> - * public class LogExample { - * private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(java.util.List.class); - * } - * </pre> - * * This annotation is valid for classes and enumerations.<br /> * @see org.slf4j.Logger org.slf4j.Logger * @see org.slf4j.LoggerFactory#getLogger(java.lang.Class) org.slf4j.LoggerFactory.getLogger(Class target) - * @see lombok.extern.apachecommons.Log lombok.extern.apachecommons.Log - * @see lombok.extern.jul.Log lombok.extern.jul.Log - * @see lombok.extern.log4j.Log lombok.extern.log4j.Log + * @see lombok.extern.apachecommons.CommonsLog @CommonsLog + * @see lombok.extern.java.Log @Log + * @see lombok.extern.log4j.Log4j @Log4j */ @Retention(RetentionPolicy.SOURCE) @Target(ElementType.TYPE) -public @interface Log { - /** - * If you do not want to use the annotated class as the logger parameter, you can specify an alternate class here. - */ - Class<?> value() default void.class; +public @interface Slf4j { } |