From 53ed2854fb01f0e26fd70ef1333781e4a1289531 Mon Sep 17 00:00:00 2001 From: serso Date: Thu, 6 Oct 2011 23:33:30 +0400 Subject: [PATCH] fix for i --- .../android/calculator/model/FromJsclTextProcessor.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/solovyev/android/calculator/model/FromJsclTextProcessor.java b/src/main/java/org/solovyev/android/calculator/model/FromJsclTextProcessor.java index 0f5878b6..4db3ea06 100644 --- a/src/main/java/org/solovyev/android/calculator/model/FromJsclTextProcessor.java +++ b/src/main/java/org/solovyev/android/calculator/model/FromJsclTextProcessor.java @@ -20,11 +20,9 @@ class FromJsclTextProcessor implements TextProcessor { @NotNull @Override - public String process(@NotNull String s) throws ParseException { - String result = null; - + public String process(@NotNull String result) throws ParseException { try { - result = String.valueOf(round(s)); + result = String.valueOf(round(result)); } catch (NumberFormatException e) { if (result.contains(MathType.IMAGINARY_NUMBER_DEF)) { try {