From eeff6e075405c2b9da6cff923ad4dd2b1f94b448 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 03 Feb 2014 13:50:34 +0000
Subject: [PATCH] Removed now useless calls to .toString() on arguments of Logger.*(...).
---
opendj3-server-dev/replace.rb | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/opendj3-server-dev/replace.rb b/opendj3-server-dev/replace.rb
index 8b4d2ec..5f2607d 100755
--- a/opendj3-server-dev/replace.rb
+++ b/opendj3-server-dev/replace.rb
@@ -227,9 +227,7 @@
:extensions => ["java"],
:replacements =>
[
- # Need to fix removing the last parentheses
- /(logger\.\s*(trace|debug|warn|info|error)\s*\([^;]*)\s*String\s*\.\s*valueOf\s*\(/m,
- /([A-Z0-9_]+\s*\.\s*get\s*\([^;]*)\.toString\(\)/m,
+ /(logger\.\s*(trace|debug|warn|info|error)\s*\([^;]*)\s*\.toString\(\)/m,
'\1',
]
}
@@ -258,8 +256,7 @@
}
# List of replacements to run
- REPLACEMENTS = [ LOGGER_STRING_VALUEOF ]
- #REPLACEMENTS = [ MESSAGES, TYPES, DN_TYPES, EXCEPTIONS, LOGGERS, I18N_LOGGERS ]
+ REPLACEMENTS = [ LOGGER_TOSTRING ]
################################### Processing methods ########################################
--
Gitblit v1.10.0