You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by rh...@apache.org on 2014/10/03 20:37:36 UTC
svn commit: r1629283 - in /db/derby/code/branches/10.10: ./
java/engine/org/apache/derby/iapi/services/info/JVMInfo.java
Author: rhillegas
Date: Fri Oct 3 18:37:36 2014
New Revision: 1629283
URL: http://svn.apache.org/r1629283
Log:
DERBY-6518: Use StringUtil.split() for CDC/FP 1.1.
Modified:
db/derby/code/branches/10.10/ (props changed)
db/derby/code/branches/10.10/java/engine/org/apache/derby/iapi/services/info/JVMInfo.java
Propchange: db/derby/code/branches/10.10/
------------------------------------------------------------------------------
Merged /db/derby/code/trunk:r1629251
Modified: db/derby/code/branches/10.10/java/engine/org/apache/derby/iapi/services/info/JVMInfo.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.10/java/engine/org/apache/derby/iapi/services/info/JVMInfo.java?rev=1629283&r1=1629282&r2=1629283&view=diff
==============================================================================
--- db/derby/code/branches/10.10/java/engine/org/apache/derby/iapi/services/info/JVMInfo.java (original)
+++ db/derby/code/branches/10.10/java/engine/org/apache/derby/iapi/services/info/JVMInfo.java Fri Oct 3 18:37:36 2014
@@ -27,6 +27,8 @@ import java.net.MalformedURLException;
import java.security.AccessController;
import java.security.PrivilegedExceptionAction;
+import org.apache.derby.iapi.util.StringUtil;
+
// As an exception to the rule we import SanityManager from the shared package
// here, because the JVMInfo class is included in both derby.jar and
// derbyclient.jar. Pulling in the class from the shared package allows us to
@@ -181,7 +183,7 @@ public abstract class JVMInfo
try {
// Extract major and minor version out of the spec version.
- String[] ver = javaVersion.split("[.]");
+ String[] ver = StringUtil.split( javaVersion, '.' );
int major = ver.length >= 1 ? Integer.parseInt(ver[0]) : 0;
int minor = ver.length >= 2 ? Integer.parseInt(ver[1]) : 0;