logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgo...@apache.org
Subject svn commit: r1420502 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/AbstractStyleNameConverter.java
Date Wed, 12 Dec 2012 01:02:48 GMT
Author: rgoers
Date: Wed Dec 12 01:02:47 2012
New Revision: 1420502

URL: http://svn.apache.org/viewvc?rev=1420502&view=rev
Log:
change newInstance to be protected instead of private to resolve compile errors

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/AbstractStyleNameConverter.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/AbstractStyleNameConverter.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/AbstractStyleNameConverter.java?rev=1420502&r1=1420501&r2=1420502&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/AbstractStyleNameConverter.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/AbstractStyleNameConverter.java
Wed Dec 12 01:02:47 2012
@@ -41,7 +41,7 @@ public abstract class AbstractStyleNameC
 
         /**
          * Gets an instance of the class (called via reflection).
-         * 
+         *
          * @param config
          *            The current Configuration.
          * @param options
@@ -55,7 +55,7 @@ public abstract class AbstractStyleNameC
 
         /**
          * Constructs the converter. This constructor must be public.
-         * 
+         *
          * @param formatters
          *            The PatternFormatters to generate the text to manipulate.
          * @param styling
@@ -77,7 +77,7 @@ public abstract class AbstractStyleNameC
 
         /**
          * Gets an instance of the class (called via reflection).
-         * 
+         *
          * @param config
          *            The current Configuration.
          * @param options
@@ -91,7 +91,7 @@ public abstract class AbstractStyleNameC
 
         /**
          * Constructs the converter. This constructor must be public.
-         * 
+         *
          * @param formatters
          *            The PatternFormatters to generate the text to manipulate.
          * @param styling
@@ -113,7 +113,7 @@ public abstract class AbstractStyleNameC
 
         /**
          * Gets an instance of the class (called via reflection).
-         * 
+         *
          * @param config
          *            The current Configuration.
          * @param options
@@ -127,7 +127,7 @@ public abstract class AbstractStyleNameC
 
         /**
          * Constructs the converter. This constructor must be public.
-         * 
+         *
          * @param formatters
          *            The PatternFormatters to generate the text to manipulate.
          * @param styling
@@ -149,7 +149,7 @@ public abstract class AbstractStyleNameC
 
         /**
          * Gets an instance of the class (called via reflection).
-         * 
+         *
          * @param config
          *            The current Configuration.
          * @param options
@@ -163,7 +163,7 @@ public abstract class AbstractStyleNameC
 
         /**
          * Constructs the converter. This constructor must be public.
-         * 
+         *
          * @param formatters
          *            The PatternFormatters to generate the text to manipulate.
          * @param styling
@@ -185,7 +185,7 @@ public abstract class AbstractStyleNameC
 
         /**
          * Gets an instance of the class (called via reflection).
-         * 
+         *
          * @param config
          *            The current Configuration.
          * @param options
@@ -199,7 +199,7 @@ public abstract class AbstractStyleNameC
 
         /**
          * Constructs the converter. This constructor must be public.
-         * 
+         *
          * @param formatters
          *            The PatternFormatters to generate the text to manipulate.
          * @param styling
@@ -221,7 +221,7 @@ public abstract class AbstractStyleNameC
 
         /**
          * Gets an instance of the class (called via reflection).
-         * 
+         *
          * @param config
          *            The current Configuration.
          * @param options
@@ -235,7 +235,7 @@ public abstract class AbstractStyleNameC
 
         /**
          * Constructs the converter. This constructor must be public.
-         * 
+         *
          * @param formatters
          *            The PatternFormatters to generate the text to manipulate.
          * @param styling
@@ -257,7 +257,7 @@ public abstract class AbstractStyleNameC
 
         /**
          * Gets an instance of the class (called via reflection).
-         * 
+         *
          * @param config
          *            The current Configuration.
          * @param options
@@ -271,7 +271,7 @@ public abstract class AbstractStyleNameC
 
         /**
          * Constructs the converter. This constructor must be public.
-         * 
+         *
          * @param formatters
          *            The PatternFormatters to generate the text to manipulate.
          * @param styling
@@ -293,7 +293,7 @@ public abstract class AbstractStyleNameC
 
         /**
          * Gets an instance of the class (called via reflection).
-         * 
+         *
          * @param config
          *            The current Configuration.
          * @param options
@@ -307,7 +307,7 @@ public abstract class AbstractStyleNameC
 
         /**
          * Constructs the converter.
-         * 
+         *
          * @param formatters
          *            The PatternFormatters to generate the text to manipulate.
          * @param styling
@@ -320,14 +320,14 @@ public abstract class AbstractStyleNameC
 
     /**
      * Gets an instance of the class (called via reflection).
-     * 
+     *
      * @param config
      *            The current Configuration.
      * @param options
      *            The pattern options, may be null. If the first element is "short", only
the first line of the throwable will be formatted.
      * @return new instance of class or null
      */
-    private static <T extends AbstractStyleNameConverter> T newInstance(final Class<T>
asnConverterClass, final String name, final Configuration config,
+    protected static <T extends AbstractStyleNameConverter> T newInstance(final Class<T>
asnConverterClass, final String name, final Configuration config,
             final String[] options) {
         final List<PatternFormatter> formatters = toPatternFormatterList(config, options);
         if (formatters == null) {
@@ -354,7 +354,7 @@ public abstract class AbstractStyleNameC
 
     /**
      * Creates a list of PatternFormatter from the given configuration and options or null
if no pattern is supplied.
-     * 
+     *
      * @param config
      *            A configuration
      * @param options
@@ -380,7 +380,7 @@ public abstract class AbstractStyleNameC
 
     /**
      * Constructs the converter.
-     * 
+     *
      * @param formatters
      *            The PatternFormatters to generate the text to manipulate.
      * @param styling



Mime
View raw message