From 3fdf607c584b948dbf155f34d5300d6200d4077d Mon Sep 17 00:00:00 2001 From: Patrick Linskey Date: Mon, 20 Nov 2006 23:54:16 +0000 Subject: [PATCH] removed external dependency so that OpenJPAVersion can be run with just the openjpa jar in the classpath git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@477414 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/openjpa/conf/OpenJPAVersion.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/conf/OpenJPAVersion.java b/openjpa-kernel/src/main/java/org/apache/openjpa/conf/OpenJPAVersion.java index 320e4e3d9..368fbbcb5 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/conf/OpenJPAVersion.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/conf/OpenJPAVersion.java @@ -20,8 +20,6 @@ import java.io.InputStream; import java.util.Properties; import java.util.StringTokenizer; -import org.apache.commons.lang.StringUtils; - /** * This class contains version information for OpenJPA. It uses * Ant's filter tokens to convert the template into a java @@ -43,7 +41,7 @@ public class OpenJPAVersion { static { Package pack = OpenJPAVersion.class.getPackage(); String vers = pack == null ? null : pack.getImplementationVersion(); - if (StringUtils.isEmpty(vers)) + if (vers == null || "".equals(vers.trim())) vers = "0.0.0"; VERSION_NUMBER = vers;