You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rg...@apache.org on 2018/11/23 22:48:36 UTC

[logging-log4j2] branch master updated: Strings.toRootUpperCase add static

This is an automated email from the ASF dual-hosted git repository.

rgoers pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/master by this push:
     new 139ecab  Strings.toRootUpperCase  add static
139ecab is described below

commit 139ecab2ec75cdbf53c5497a2398ef10bd1ce5f0
Author: Brian <sm...@gmail.com>
AuthorDate: Wed Nov 14 11:31:53 2018 +0800

    Strings.toRootUpperCase  add static
    
    because String() is private
    and there is no getInstance  in this class.
    the others function are static, so I want to add 'static' for toRootUpperCase.
    
    sorry, my english is poor.
---
 log4j-api/src/main/java/org/apache/logging/log4j/util/Strings.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/util/Strings.java b/log4j-api/src/main/java/org/apache/logging/log4j/util/Strings.java
index 176fd09..e285502 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/util/Strings.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/util/Strings.java
@@ -180,7 +180,7 @@ public final class Strings {
      * @return a new string
      * @see String#toLowerCase(Locale)
      */
-    public String toRootUpperCase(final String str) {
+    public static String toRootUpperCase(final String str) {
         return str.toUpperCase(Locale.ROOT);
     }