You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2009/09/08 02:49:21 UTC
svn commit: r812314 -
/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilValidate.java
Author: lektran
Date: Tue Sep 8 00:49:20 2009
New Revision: 812314
URL: http://svn.apache.org/viewvc?rev=812314&view=rev
Log:
Copy/paste error, thanks Adam
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilValidate.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilValidate.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilValidate.java?rev=812314&r1=812313&r2=812314&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilValidate.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilValidate.java Tue Sep 8 00:49:20 2009
@@ -1303,7 +1303,7 @@
public static boolean isValidEan(String ean) {
if (ean == null || ean.length() != 13) {
- throw new IllegalArgumentException("Invalid UPC length; must be 12 characters");
+ throw new IllegalArgumentException("Invalid EAN length; must be 13 characters");
}
char csum = ean.charAt(13);
char calcSum = calcChecksum(ean, 13);