summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}