From 86a5f68ce97788d0e15f71213f9263e9b982edea Mon Sep 17 00:00:00 2001 From: mcombellack Date: Mon, 8 Dec 2008 13:57:02 +0000 Subject: Updated code that converts a String to a long to use Long.parseLong(String) rather than new Long(String) so that a new Long Object instance is not created and discarded git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@724347 13f79535-47bb-0310-9956-ffa450edef68 --- .../tuscany/sca/core/conversation/impl/ConversationManagerImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'java/sca/modules') diff --git a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/conversation/impl/ConversationManagerImpl.java b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/conversation/impl/ConversationManagerImpl.java index 9920e5614f..e23659b990 100644 --- a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/conversation/impl/ConversationManagerImpl.java +++ b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/conversation/impl/ConversationManagerImpl.java @@ -85,7 +85,7 @@ public class ConversationManagerImpl implements ConversationManager { }); if (aProperty != null) { try { - mit = (new Long(aProperty) * 1000); + mit = Long.parseLong(aProperty) * 1000; } catch (NumberFormatException nfe) { // Ignore } @@ -100,7 +100,7 @@ public class ConversationManagerImpl implements ConversationManager { }); if (aProperty != null) { try { - ma = (new Long(aProperty) * 1000); + ma = Long.parseLong(aProperty) * 1000; } catch (NumberFormatException nfe) { // Ignore } -- cgit v1.2.3