cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vgritse...@hns.com>
Subject org.apache.cocoon.sitemap.SitemapManager.hasChaged()
Date Thu, 24 Aug 2000 19:14:59 GMT
Hi All,

It seems there is error in this method. It returns "true"
always now, and I think it should return false sometimes,
like this:

 public boolean hasChanged () {
  SitemapHandler sitemapHandler = null;
  Enumeration enum = sitemaps.elements();
  while (enum.hasMoreElements()) {
   sitemapHandler = (SitemapHandler) enum.nextElement ();
   if (sitemapHandler != null) {
    if (sitemapHandler.hasChanged())
     return true;
   }
  }
  return false;
 }


Vadim


Mime
View raw message