Author: marrs
Date: Wed Oct 16 15:31:37 2013
New Revision: 1532799
URL: http://svn.apache.org/r1532799
Log:
Fixed a bug. I had by accident changed the logical flow of the method.
Modified:
ace/trunk/org.apache.ace.repository/src/org/apache/ace/repository/ext/impl/CachedRepositoryImpl.java
Modified:
ace/trunk/org.apache.ace.repository/src/org/apache/ace/repository/ext/impl/CachedRepositoryImpl.java
URL:
http://svn.apache.org/viewvc/ace/trunk/org.apache.ace.repository/src/org/apache/ace/repository/ext/impl/CachedRepositoryImpl.java?rev=1532799&r1=1532798&r2=1532799&view=diff
==============================================================================
---
ace/trunk/org.apache.ace.repository/src/org/apache/ace/repository/ext/impl/CachedRepositoryImpl.java
(original)
+++
ace/trunk/org.apache.ace.repository/src/org/apache/ace/repository/ext/impl/CachedRepositoryImpl.java
Wed Oct 16 15:31:37 2013
@@ -105,11 +105,8 @@ public class CachedRepositoryImpl implem
public InputStream getLocal(boolean fail) throws IllegalArgumentException,
IOException {
// ACE-240: only fail in case there is no local version available;
when mostRecentVersion
// equals to 0, it means that nothing has been committed locally...
- if (m_mostRecentVersion <= 0) {
- if (fail) {
- throw new IOException("No local version available of "
+ m_local + ", remote " + m_remote);
- }
- return null;
+ if (m_mostRecentVersion <= 0 && (fail)) {
+ throw new IOException("No local version available of " +
m_local + ", remote " + m_remote);
}
return m_local.read();
}