logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1400942 - in /logging/log4j/log4j2/trunk: api/src/main/java/org/apache/logging/log4j/ api/src/main/java/org/apache/logging/log4j/spi/ core/src/main/java/org/apache/logging/log4j/core/appender/ core/src/main/java/org/apache/logging/log4j/co...
Date Mon, 22 Oct 2012 16:29:32 GMT
Author: ggregory
Date: Mon Oct 22 16:29:31 2012
New Revision: 1400942

URL: http://svn.apache.org/viewvc?rev=1400942&view=rev
Log:
Replace "<code>false</code>" with "{@code false}", it's less noisy and shorter.

Modified:
    logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/Logger.java
    logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/OutputStreamAppender.java
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/lookup/StrMatcher.java
    logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Appender.java
    logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Category.java
    logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Layout.java
    logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Priority.java

Modified: logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/Logger.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/Logger.java?rev=1400942&r1=1400941&r2=1400942&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/Logger.java (original)
+++ logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/Logger.java Mon
Oct 22 16:29:31 2012
@@ -574,7 +574,7 @@ public interface Logger {
    * Checks whether this Logger is enabled for the {@link Level#DEBUG DEBUG} Level.
    *
    * @return boolean - <code>true</code> if this Logger is enabled for level
-   *         DEBUG, <code>false</code> otherwise.
+   *         DEBUG, {@code false} otherwise.
    */
   boolean isDebugEnabled();
 
@@ -583,7 +583,7 @@ public interface Logger {
    *
    * @param marker The marker data specific to this log statement.
    * @return boolean - <code>true</code> if this Logger is enabled for level
-   *         DEBUG, <code>false</code> otherwise.
+   *         DEBUG, {@code false} otherwise.
    */
   boolean isDebugEnabled(Marker marker);
 
@@ -593,7 +593,7 @@ public interface Logger {
    * Note that passing in {@link Level#OFF OFF} always returns {@code true}.
    * </p>
    * @param level the level to check
-   * @return boolean - <code>true</code> if this Logger is enabled for level,
<code>false</code> otherwise.
+   * @return boolean - <code>true</code> if this Logger is enabled for level,
{@code false} otherwise.
    */
   boolean isEnabled(Level level);
   
@@ -601,7 +601,7 @@ public interface Logger {
    * Checks whether this Logger is enabled for the {@link Level#ERROR ERROR} Level.
    *
    * @return boolean - <code>true</code> if this Logger is enabled for level
-   *         {@link Level#ERROR ERROR}, <code>false</code> otherwise.
+   *         {@link Level#ERROR ERROR}, {@code false} otherwise.
    */
   boolean isErrorEnabled();
 
@@ -610,7 +610,7 @@ public interface Logger {
    *
    * @param marker The marker data specific to this log statement.
    * @return boolean - <code>true</code> if this Logger is enabled for level
-   *         {@link Level#ERROR ERROR}, <code>false</code> otherwise.
+   *         {@link Level#ERROR ERROR}, {@code false} otherwise.
    */
   boolean isErrorEnabled(Marker marker);
 
@@ -618,7 +618,7 @@ public interface Logger {
    * Checks whether this Logger is enabled for the {@link Level#FATAL FATAL} Level.
    *
    * @return boolean - <code>true</code> if this Logger is enabled for level
-   *         {@link Level#FATAL FATAL}, <code>false</code> otherwise.
+   *         {@link Level#FATAL FATAL}, {@code false} otherwise.
    */
   boolean isFatalEnabled();
 
@@ -627,7 +627,7 @@ public interface Logger {
    *
    * @param marker The marker data specific to this log statement.
    * @return boolean - <code>true</code> if this Logger is enabled for level
-   *         {@link Level#FATAL FATAL}, <code>false</code> otherwise.
+   *         {@link Level#FATAL FATAL}, {@code false} otherwise.
    */
   boolean isFatalEnabled(Marker marker);
 
@@ -635,7 +635,7 @@ public interface Logger {
    * Checks whether this Logger is enabled for the {@link Level#INFO INFO} Level.
    *
    * @return boolean - <code>true</code> if this Logger is enabled for level
-   *         INFO, <code>false</code> otherwise.
+   *         INFO, {@code false} otherwise.
    */
   boolean isInfoEnabled();
 
@@ -644,7 +644,7 @@ public interface Logger {
    *
    * @param marker The marker data specific to this log statement.
    * @return boolean - <code>true</code> if this Logger is enabled for level
-   *         INFO, <code>false</code> otherwise.
+   *         INFO, {@code false} otherwise.
    */
   boolean isInfoEnabled(Marker marker);
 
@@ -652,7 +652,7 @@ public interface Logger {
    * Checks whether this Logger is enabled for the {@link Level#TRACE TRACE} level.
    *
    * @return boolean - <code>true</code> if this Logger is enabled for level
-   *         TRACE, <code>false</code> otherwise.
+   *         TRACE, {@code false} otherwise.
    */
   boolean isTraceEnabled();
 
@@ -661,7 +661,7 @@ public interface Logger {
    *
    * @param marker The marker data specific to this log statement.
    * @return boolean - <code>true</code> if this Logger is enabled for level
-   *         TRACE, <code>false</code> otherwise.
+   *         TRACE, {@code false} otherwise.
    */
   boolean isTraceEnabled(Marker marker);
 
@@ -669,7 +669,7 @@ public interface Logger {
    * Checks whether this Logger is enabled for the {@link Level#WARN WARN} Level.
    *
    * @return boolean - <code>true</code> if this Logger is enabled for level
-   *         {@link Level#WARN WARN}, <code>false</code> otherwise.
+   *         {@link Level#WARN WARN}, {@code false} otherwise.
    */
   boolean isWarnEnabled();
 
@@ -678,7 +678,7 @@ public interface Logger {
    *
    * @param marker The marker data specific to this log statement.
    * @return boolean - <code>true</code> if this Logger is enabled for level
-   *         {@link Level#WARN WARN}, <code>false</code> otherwise.
+   *         {@link Level#WARN WARN}, {@code false} otherwise.
    */
   boolean isWarnEnabled(Marker marker);
 

Modified: logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java?rev=1400942&r1=1400941&r2=1400942&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
(original)
+++ logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
Mon Oct 22 16:29:31 2012
@@ -324,7 +324,7 @@ public abstract class AbstractLogger imp
      * Checks whether this Logger is enabled for the TRACE  Level.
      *
      * @return boolean - <code>true</code> if this Logger is enabled for level
-     *         TRACE, <code>false</code> otherwise.
+     *         TRACE, {@code false} otherwise.
      */
     public boolean isTraceEnabled() {
         return isEnabled(Level.TRACE, null, (Object) null, null);
@@ -335,7 +335,7 @@ public abstract class AbstractLogger imp
      *
      * @param marker The marker data.
      * @return boolean - <code>true</code> if this Logger is enabled for level
-     *         TRACE, <code>false</code> otherwise.
+     *         TRACE, {@code false} otherwise.
      */
     public boolean isTraceEnabled(Marker marker) {
         return isEnabled(Level.TRACE, marker, (Object) null, null);
@@ -519,7 +519,7 @@ public abstract class AbstractLogger imp
      * Checks whether this Logger is enabled for the DEBUG Level.
      *
      * @return boolean - <code>true</code> if this Logger is enabled for level
-     *         DEBUG, <code>false</code> otherwise.
+     *         DEBUG, {@code false} otherwise.
      */
     public boolean isDebugEnabled() {
         return isEnabled(Level.DEBUG, null, null);
@@ -530,7 +530,7 @@ public abstract class AbstractLogger imp
      *
      * @param marker The marker data.
      * @return boolean - <code>true</code> if this Logger is enabled for level
-     *         DEBUG, <code>false</code> otherwise.
+     *         DEBUG, {@code false} otherwise.
      */
     public boolean isDebugEnabled(Marker marker) {
         return isEnabled(Level.DEBUG, marker, (Object) null, null);
@@ -716,7 +716,7 @@ public abstract class AbstractLogger imp
      * Checks whether this Logger is enabled for the INFO Level.
      *
      * @return boolean - <code>true</code> if this Logger is enabled for level
-     *         INFO, <code>false</code> otherwise.
+     *         INFO, {@code false} otherwise.
      */
     public boolean isInfoEnabled() {
         return isEnabled(Level.INFO, null, (Object) null, null);
@@ -726,7 +726,7 @@ public abstract class AbstractLogger imp
      * Checks whether this Logger is enabled for the INFO Level.
      * @param marker The marker data.
      * @return boolean - <code>true</code> if this Logger is enabled for level
-     *         INFO, <code>false</code> otherwise.
+     *         INFO, {@code false} otherwise.
      */
     public boolean isInfoEnabled(Marker marker) {
         return isEnabled(Level.INFO, marker, (Object) null, null);
@@ -911,7 +911,7 @@ public abstract class AbstractLogger imp
      * Checks whether this Logger is enabled for the WARN Level.
      *
      * @return boolean - <code>true</code> if this Logger is enabled for level
-     *         WARN, <code>false</code> otherwise.
+     *         WARN, {@code false} otherwise.
      */
     public boolean isWarnEnabled() {
         return isEnabled(Level.WARN, null, (Object) null, null);
@@ -923,7 +923,7 @@ public abstract class AbstractLogger imp
      *
      * @param marker The marker data.
      * @return boolean - <code>true</code> if this Logger is enabled for level
-     *         WARN, <code>false</code> otherwise.
+     *         WARN, {@code false} otherwise.
      */
     public boolean isWarnEnabled(Marker marker) {
         return isEnabled(Level.WARN, marker, (Object) null, null);
@@ -1109,7 +1109,7 @@ public abstract class AbstractLogger imp
      * Checks whether this Logger is enabled for the {@link Level#ERROR ERROR} Level.
      *
      * @return boolean - <code>true</code> if this Logger is enabled for level
-     *         {@link Level#ERROR ERROR}, <code>false</code> otherwise.
+     *         {@link Level#ERROR ERROR}, {@code false} otherwise.
      */
     public boolean isErrorEnabled() {
         return isEnabled(Level.ERROR, null, (Object) null, null);
@@ -1120,7 +1120,7 @@ public abstract class AbstractLogger imp
      *
      * @param marker The marker data.
      * @return boolean - <code>true</code> if this Logger is enabled for level
-     *         {@link Level#ERROR ERROR}, <code>false</code> otherwise.
+     *         {@link Level#ERROR ERROR}, {@code false} otherwise.
      */
     public boolean isErrorEnabled(Marker marker) {
         return isEnabled(Level.ERROR, marker, (Object) null, null);
@@ -1306,7 +1306,7 @@ public abstract class AbstractLogger imp
      * Checks whether this Logger is enabled for the FATAL Level.
      *
      * @return boolean - <code>true</code> if this Logger is enabled for level
-     *         FATAL, <code>false</code> otherwise.
+     *         FATAL, {@code false} otherwise.
      */
     public boolean isFatalEnabled() {
         return isEnabled(Level.FATAL, null, (Object) null, null);
@@ -1317,7 +1317,7 @@ public abstract class AbstractLogger imp
      *
      * @param marker The marker data.
      * @return boolean - <code>true</code> if this Logger is enabled for level
-     *         FATAL, <code>false</code> otherwise.
+     *         FATAL, {@code false} otherwise.
      */
     public boolean isFatalEnabled(Marker marker) {
         return isEnabled(Level.FATAL, marker, (Object) null, null);
@@ -1433,7 +1433,7 @@ public abstract class AbstractLogger imp
      * Note that passing in {@link Level#OFF OFF} always returns {@code true}.
      * </p>
      * @param level the level to check
-     * @return boolean - <code>true</code> if this Logger is enabled for level,
<code>false</code> otherwise.
+     * @return boolean - <code>true</code> if this Logger is enabled for level,
{@code false} otherwise.
      */
     public boolean isEnabled(Level level) {
         return isEnabled(level, null, (Object) null, null);

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/OutputStreamAppender.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/OutputStreamAppender.java?rev=1400942&r1=1400941&r2=1400942&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/OutputStreamAppender.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/OutputStreamAppender.java
Mon Oct 22 16:29:31 2012
@@ -34,7 +34,7 @@ public abstract class OutputStreamAppend
      * will be flushed at the end of each append operation. Immediate
      * flush is slower but ensures that each append request is actually
      * written. If <code>immediateFlush</code> is set to
-     * <code>false</code>, then there is a good chance that the last few
+     * {@code false}, then there is a good chance that the last few
      * logs events are not actually written to persistent media if and
      * when the application crashes.
      */

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/lookup/StrMatcher.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/lookup/StrMatcher.java?rev=1400942&r1=1400941&r2=1400942&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/lookup/StrMatcher.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/lookup/StrMatcher.java
Mon Oct 22 16:29:31 2012
@@ -382,7 +382,7 @@ public abstract class StrMatcher {
         }
 
         /**
-         * Always returns <code>false</code>.
+         * Always returns {@code false}.
          *
          * @param buffer  the text content to match against, do not change
          * @param pos  the starting position for the match, valid for buffer

Modified: logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Appender.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Appender.java?rev=1400942&r1=1400941&r2=1400942&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Appender.java (original)
+++ logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Appender.java Mon
Oct 22 16:29:31 2012
@@ -119,7 +119,7 @@ public interface Appender {
      * requires a layout. If this method returns <code>true</code>,
      * meaning that layout is required, then the configurator will
      * configure an layout using the configuration information at its
-     * disposal.  If this method returns <code>false</code>, meaning that
+     * disposal.  If this method returns {@code false}, meaning that
      * a layout is not required, then layout configuration will be
      * skipped even if there is available layout configuration
      * information at the disposal of the configurator..

Modified: logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Category.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Category.java?rev=1400942&r1=1400941&r2=1400942&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Category.java (original)
+++ logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Category.java Mon
Oct 22 16:29:31 2012
@@ -368,7 +368,7 @@ public class Category {
     }
 
     /**
-     If <code>assertion</code> parameter is <code>false</code>, then
+     If <code>assertion</code> parameter is {@code false}, then
      logs <code>msg</code> as an {@link #error(Object) error} statement.
 
      <p>The <code>assert</code> method has been renamed to

Modified: logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Layout.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Layout.java?rev=1400942&r1=1400941&r2=1400942&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Layout.java (original)
+++ logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Layout.java Mon
Oct 22 16:29:31 2012
@@ -62,14 +62,14 @@ public abstract class Layout {
     /**
      * If the layout handles the throwable object contained within
      * {@link LoggingEvent}, then the layout should return
-     * <code>false</code>. Otherwise, if the layout ignores throwable
+     * {@code false}. Otherwise, if the layout ignores throwable
      * object, then the layout should return <code>true</code>.
      * If ignoresThrowable is true, the appender is responsible for
      * rendering the throwable.
      * <p/>
      * <p>The {@link SimpleLayout}, {@link TTCCLayout}, {@link
      * PatternLayout} all return <code>true</code>. The {@link
-     * org.apache.log4j.xml.XMLLayout} returns <code>false</code>.
+     * org.apache.log4j.xml.XMLLayout} returns {@code false}.
      *
      * @since 0.8.4
      */

Modified: logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Priority.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Priority.java?rev=1400942&r1=1400941&r2=1400942&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Priority.java (original)
+++ logging/log4j/log4j2/trunk/log4j12-api/src/main/java/org/apache/log4j/Priority.java Mon
Oct 22 16:29:31 2012
@@ -147,7 +147,7 @@ public class Priority {
 
     /**
      * Returns <code>true</code> if this level has a higher or equal
-     * level than the level passed as argument, <code>false</code>
+     * level than the level passed as argument, {@code false}
      * otherwise.
      * <p/>
      * <p>You should think twice before overriding the default



Mime
View raw message