summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/core/src
diff options
context:
space:
mode:
authormcombellack <mcombellack@13f79535-47bb-0310-9956-ffa450edef68>2008-12-08 13:57:02 +0000
committermcombellack <mcombellack@13f79535-47bb-0310-9956-ffa450edef68>2008-12-08 13:57:02 +0000
commit86a5f68ce97788d0e15f71213f9263e9b982edea (patch)
treed7ac9105a120dcd29ba84b5e6b7588a6a6d57ae4 /java/sca/modules/core/src
parenta2d8b503471ff503287e308f9d5ff406241846e4 (diff)
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
Diffstat (limited to 'java/sca/modules/core/src')
-rw-r--r--java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/conversation/impl/ConversationManagerImpl.java4
1 files changed, 2 insertions, 2 deletions
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
}