You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2013/08/28 11:02:29 UTC
svn commit: r1518112 -
/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/context/ResourceLocator.java
Author: lofwyr
Date: Wed Aug 28 09:02:28 2013
New Revision: 1518112
URL: http://svn.apache.org/r1518112
Log:
fix endless loop in test
Modified:
myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/context/ResourceLocator.java
Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/context/ResourceLocator.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/context/ResourceLocator.java?rev=1518112&r1=1518111&r2=1518112&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/context/ResourceLocator.java (original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/context/ResourceLocator.java Wed Aug 28 09:02:28 2013
@@ -247,9 +247,8 @@ class ResourceLocator {
try {
stream = jarFile.openStream();
zipStream = new ZipInputStream(stream);
- while (zipStream.available() > 0) {
- ZipEntry nextEntry = zipStream.getNextEntry();
- if (nextEntry == null || nextEntry.isDirectory()) {
+ for (ZipEntry nextEntry = zipStream.getNextEntry(); nextEntry != null; nextEntry = zipStream.getNextEntry()) {
+ if (nextEntry.isDirectory()) {
continue;
}
String name = "/" + nextEntry.getName();