You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2006/08/07 09:27:28 UTC

svn commit: r429265 - /incubator/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/ObjectType.java

Author: jacopoc
Date: Mon Aug  7 00:27:27 2006
New Revision: 429265

URL: http://svn.apache.org/viewvc?rev=429265&view=rev
Log:
tabs to spaces

Modified:
    incubator/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/ObjectType.java

Modified: incubator/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/ObjectType.java
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/ObjectType.java?rev=429265&r1=429264&r2=429265&view=diff
==============================================================================
--- incubator/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/ObjectType.java (original)
+++ incubator/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/ObjectType.java Mon Aug  7 00:27:27 2006
@@ -469,7 +469,7 @@
             }
             
             if ("Boolean".equals(type) || "java.lang.Boolean".equals(type)) {
-            	str = StringUtil.removeSpaces(str);
+                str = StringUtil.removeSpaces(str);
                 Boolean value = null;
                 if (str.equalsIgnoreCase("TRUE")) {
                     value = new Boolean(true);
@@ -485,7 +485,7 @@
                     throw new GeneralException("Could not convert " + str + " to " + type + ": ");    
                 }
             } else if ("BigDecimal".equals(type) || "java.math.BigDecimal".equals(type)) {
-            	str = StringUtil.removeSpaces(str);
+                str = StringUtil.removeSpaces(str);
                 try {
                     NumberFormat nf = null;
                     if (locale == null) {
@@ -499,7 +499,7 @@
                     throw new GeneralException("Could not convert " + str + " to " + type + ": ", e);
                 }
             } else if ("Double".equals(type) || "java.lang.Double".equals(type)) {
-            	str = StringUtil.removeSpaces(str);
+                str = StringUtil.removeSpaces(str);
                 try {
                     NumberFormat nf = null;
                     if (locale == null) {
@@ -514,7 +514,7 @@
                     throw new GeneralException("Could not convert " + str + " to " + type + ": ", e);
                 }
             } else if ("Float".equals(type) || "java.lang.Float".equals(type)) {
-            	str = StringUtil.removeSpaces(str);
+                str = StringUtil.removeSpaces(str);
                 try {
                     NumberFormat nf = null;
                     if (locale == null) {
@@ -529,7 +529,7 @@
                     throw new GeneralException("Could not convert " + str + " to " + type + ": ", e);
                 }
             } else if ("Long".equals(type) || "java.lang.Long".equals(type)) {
-            	str = StringUtil.removeSpaces(str);
+                str = StringUtil.removeSpaces(str);
                 try {
                     NumberFormat nf = null;
                     if (locale == null) {
@@ -545,7 +545,7 @@
                     throw new GeneralException("Could not convert " + str + " to " + type + ": ", e);
                 }
             } else if ("Integer".equals(type) || "java.lang.Integer".equals(type)) {
-            	str = StringUtil.removeSpaces(str);
+                str = StringUtil.removeSpaces(str);
                 try {
                     NumberFormat nf = null;
                     if (locale == null) {
@@ -939,10 +939,10 @@
 
         Object convertedValue2 = null;
         if (value2 != null) {
-        	Locale value2Locale = locale;
-        	if (value2InlineConstant) {
-        		value2Locale = UtilMisc.parseLocale("en");
-        	}
+            Locale value2Locale = locale;
+            if (value2InlineConstant) {
+                value2Locale = UtilMisc.parseLocale("en");
+            }
             try {
                 convertedValue2 = ObjectType.simpleTypeConvert(value2, type, format, value2Locale);
             } catch (GeneralException e) {