El lun, 14-08-2006 a las 09:41 +0200, Andreas Hartmann escribió:
> Hi Thorsten,
> 
> [EMAIL PROTECTED] wrote:
> 
> > +    public Iterator getAttributeNames(Configuration modeConf, Map 
> > objectModel)
> > +    throws ConfigurationException {
> > +
> > +SortedSet matchset = new TreeSet();
> > +Enumeration enumeration = filteringProperties.keys();
> > +while (enumeration.hasMoreElements()) {
> > +    String key = (String) enumeration.nextElement();
> > +    matchset.add(key);
> > +}
> > +Iterator iterator = super.getAttributeNames(modeConf, objectModel);
> > +while (iterator.hasNext())
> > +    matchset.add(iterator.next());
> > +return matchset.iterator();
> > +}
> 
> nag nag ... :)
> 
> Is this the real code, or did the SVN mail mess up the indentation?

Nupp, I did not came around to format before commit. Then I already
added the code and did not want to mess up the diff with white noise. 

I forgot to clean up again. Will do so now. Thanks for pointing out.

> And does the method have to be public?

Like you found out it is the API that says so.

> 
> 
> >              filteringProperties = 
> > loadXMLPropertiesFromURI(filteringProperties,
> >                      lenyaPropertiesStringURI);
> > -        } catch (FileNotFoundException e) {
> > -            if (debugging())
> > -                debug("Unable to find local.lenya.properties.xml, 
> > ignoring.");
> > -        }
> 
> Is this intended? 

Yes.

> IIUC the Exception is just swallowed in non-debug mode.
> That looks like exception handling for flow control, which is a Bad Thing.
> Shouldn't we check if the file exists instead?

See loadXMLPropertiesFromURI(...) there is a source.exist() that is why
FileNotFoundException will not appear anymore. Since they do not appear
it does not make sense to catch them (that is why I removed them).

Why do you think we should keep it? 

Why was it there before?
http://svn.apache.org/viewvc?rev=428447&view=rev

I agree with your opinion that is why I opened
https://issues.apache.org/jira/browse/FOR-914 a week ago.

salu2

> 
> -- Andreas
> 
> 
> 
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to