ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1368701 - /ace/sandbox/marrs/org.apache.ace.repository.impl/src/org/apache/ace/repository/impl/RepositoryImpl.java
Date Thu, 02 Aug 2012 20:59:13 GMT
Author: marrs
Date: Thu Aug  2 20:59:12 2012
New Revision: 1368701

URL: http://svn.apache.org/viewvc?rev=1368701&view=rev
Log:
Fixed how an exception got reported to better help track the cause.

Modified:
    ace/sandbox/marrs/org.apache.ace.repository.impl/src/org/apache/ace/repository/impl/RepositoryImpl.java

Modified: ace/sandbox/marrs/org.apache.ace.repository.impl/src/org/apache/ace/repository/impl/RepositoryImpl.java
URL: http://svn.apache.org/viewvc/ace/sandbox/marrs/org.apache.ace.repository.impl/src/org/apache/ace/repository/impl/RepositoryImpl.java?rev=1368701&r1=1368700&r2=1368701&view=diff
==============================================================================
--- ace/sandbox/marrs/org.apache.ace.repository.impl/src/org/apache/ace/repository/impl/RepositoryImpl.java
(original)
+++ ace/sandbox/marrs/org.apache.ace.repository.impl/src/org/apache/ace/repository/impl/RepositoryImpl.java
Thu Aug  2 20:59:12 2012
@@ -170,11 +170,12 @@ public class RepositoryImpl implements R
         }
         long[] results = new long[versions.length];
         for (int i = 0; i < versions.length; i++) {
-            try {
-                results[i] = Long.parseLong(versions[i].getName());
+            String name = versions[i].getName();
+			try {
+                results[i] = Long.parseLong(name);
             }
             catch (NumberFormatException nfe) {
-                m_log.log(LogService.LOG_WARNING, "Unable to determine version number for
'" + results[i] + "', skipping it.");
+                m_log.log(LogService.LOG_WARNING, "Unable to determine version number for
'" + name + "', skipping it.");
             }
         }
         Arrays.sort(results);



Mime
View raw message