ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Jackson <kevin.jack...@it.fts-vn.com>
Subject [Patch] removed multiple returns from AntTypeDefinition.getTypeClass
Date Thu, 04 Nov 2004 06:06:54 GMT
Hi,

Another quick one.  AntTypeDefinition.getTypeClass
if(clazz != null) {
  return clazz;
}
try {

}catch() etc etc

return clazz;

I've reversed the logic and now there's only one return from this method. ie

if (clazz == null) {
try {
[loads of things]
} catch() {

return clazz;

It's not a fix or anything, but IM(very humble)O having one return makes 
the code easier to understand.

Included test case.

Kev

Mime
View raw message