You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2020/11/26 14:07:06 UTC
[logging-log4j2] 03/05: Don't need new String object.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit 84443542b48b43c640e55266b7524b4f662ef98d
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Nov 22 14:29:22 2020 -0500
Don't need new String object.
---
log4j-1.2-api/src/test/java/org/apache/log4j/VelocityTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/log4j-1.2-api/src/test/java/org/apache/log4j/VelocityTest.java b/log4j-1.2-api/src/test/java/org/apache/log4j/VelocityTest.java
index c1165d7..ee6596f 100644
--- a/log4j-1.2-api/src/test/java/org/apache/log4j/VelocityTest.java
+++ b/log4j-1.2-api/src/test/java/org/apache/log4j/VelocityTest.java
@@ -50,7 +50,7 @@ private static LoggerContext context;
public void testVelocity() {
Velocity.init();
final VelocityContext vContext = new VelocityContext();
- vContext.put("name", new String("Velocity"));
+ vContext.put("name", "Velocity");
final Template template = Velocity.getTemplate("target/test-classes/hello.vm");