diff options
author | Roel Spilker <r.spilker@gmail.com> | 2014-01-21 23:00:09 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2014-01-21 23:00:09 +0100 |
commit | d5c366e93ea19f286da2bdee16c0fdca8850b22a (patch) | |
tree | 4db88da3866852f4a499588b4e1e48f90417339f | |
parent | cdb4920d52b372831807347ccc28a3382a6fea7d (diff) | |
download | lombok-d5c366e93ea19f286da2bdee16c0fdca8850b22a.tar.gz lombok-d5c366e93ea19f286da2bdee16c0fdca8850b22a.tar.bz2 lombok-d5c366e93ea19f286da2bdee16c0fdca8850b22a.zip |
Issue 630: Several small documentation fixed for Log
-rw-r--r-- | src/core/lombok/extern/slf4j/Slf4j.java | 3 | ||||
-rw-r--r-- | usage_examples/LogExample_post.jpage | 8 | ||||
-rw-r--r-- | usage_examples/LogExample_pre.jpage | 8 | ||||
-rw-r--r-- | website/features/Log.html | 2 |
4 files changed, 3 insertions, 18 deletions
diff --git a/src/core/lombok/extern/slf4j/Slf4j.java b/src/core/lombok/extern/slf4j/Slf4j.java index 45942971..8490b6b6 100644 --- a/src/core/lombok/extern/slf4j/Slf4j.java +++ b/src/core/lombok/extern/slf4j/Slf4j.java @@ -52,7 +52,8 @@ import java.lang.annotation.Target; * @see lombok.extern.java.Log @Log * @see lombok.extern.log4j.Log4j @Log4j * @see lombok.extern.log4j.Log4j2 @Log4j2 - */ + * @see lombok.extern.slf4j.XSlf4j @XSlf4j + * */ @Retention(RetentionPolicy.SOURCE) @Target(ElementType.TYPE) public @interface Slf4j { diff --git a/usage_examples/LogExample_post.jpage b/usage_examples/LogExample_post.jpage index cbdc5a9e..2ec7f223 100644 --- a/usage_examples/LogExample_post.jpage +++ b/usage_examples/LogExample_post.jpage @@ -5,11 +5,3 @@ public class LogExample { log.error("Something's wrong here"); } } - -public class LogExampleOther { - private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(java.util.List.class); - - public static void main(String... args) { - log.warn("Something might be wrong here"); - } -} diff --git a/usage_examples/LogExample_pre.jpage b/usage_examples/LogExample_pre.jpage index 7ab64cd4..afabf369 100644 --- a/usage_examples/LogExample_pre.jpage +++ b/usage_examples/LogExample_pre.jpage @@ -7,11 +7,3 @@ public class LogExample { log.error("Something's wrong here"); } } - -@Log(java.util.List.class) -public class LogExampleOther { - - public static void main(String... args) { - log.warn("Something might be wrong here"); - } -} diff --git a/website/features/Log.html b/website/features/Log.html index 2d4fa375..f92af1e3 100644 --- a/website/features/Log.html +++ b/website/features/Log.html @@ -31,7 +31,7 @@ <dt><code>@Slf4j</code></dt> <dd>Creates <code><span class="keyword">private static final </span><a href="http://www.slf4j.org/api/org/slf4j/Logger.html">org.slf4j.Logger</a> <span class="staticfield">log</span> = <a href="http://www.slf4j.org/apidocs/org/slf4j/LoggerFactory.html#getLogger(java.lang.Class)">org.slf4j.LoggerFactory.getLogger</a>(LogExample.<span class="keyword">class</span>);</code></dd> <dt><code>@XSlf4j</code></dt> - <dd>Creates <code><span class="keyword">private static final </span><a href="http://www.slf4j.org/api/org/slf4j/ext/XLogger.html">org.slf4j.ext.XLogger</a> <span class="staticfield">log</span> = <a href="http://www.slf4j.org/apidocs/org/slf4j/ext/XLoggerFactory.html#getXLogger(java.lang.Class)">org.slf4j.XLoggerFactory.getXLogger</a>(LogExample.<span class="keyword">class</span>);</code></dd> + <dd>Creates <code><span class="keyword">private static final </span><a href="http://www.slf4j.org/api/org/slf4j/ext/XLogger.html">org.slf4j.ext.XLogger</a> <span class="staticfield">log</span> = <a href="http://www.slf4j.org/apidocs/org/slf4j/ext/XLoggerFactory.html#getXLogger(java.lang.Class)">org.slf4j.ext.XLoggerFactory.getXLogger</a>(LogExample.<span class="keyword">class</span>);</code></dd> </dl> </p> </div> |