[Buix-commits] r1536 - trunk/guix-compiler-swing/src/main/java/org/nuiton/guix/generator
Author: kmorin Date: 2009-07-28 12:38:42 +0200 (Tue, 28 Jul 2009) New Revision: 1536 Modified: trunk/guix-compiler-swing/src/main/java/org/nuiton/guix/generator/SwingGenerator.java Log: Correction after the last failed build Modified: trunk/guix-compiler-swing/src/main/java/org/nuiton/guix/generator/SwingGenerator.java =================================================================== --- trunk/guix-compiler-swing/src/main/java/org/nuiton/guix/generator/SwingGenerator.java 2009-07-28 10:38:31 UTC (rev 1535) +++ trunk/guix-compiler-swing/src/main/java/org/nuiton/guix/generator/SwingGenerator.java 2009-07-28 10:38:42 UTC (rev 1536) @@ -96,23 +96,32 @@ return jf; } - catch (IllegalArgumentException ex) { - log.error(ex); + catch (IllegalArgumentException eee) { + if(log.isErrorEnabled()) { + log.error(eee); + } } - catch (IllegalStateException ex) { - log.error(ex); + catch (IllegalStateException eee) { + if(log.isErrorEnabled()) { + log.error(eee); + } } - catch (IOException ex) { - log.error(ex); + catch (IOException eee) { + if(log.isErrorEnabled()) { + log.error(eee); + } } } else if (log.isWarnEnabled()) { log.warn(gmo.getClassDescriptor().getName() + " has already been generated and is up to date."); } } - finally { - return null; + catch(Exception eee) { + if(log.isErrorEnabled()) { + log.error(eee); + } } + return null; } @Override @@ -407,6 +416,7 @@ result.addAll(generateBindings(dbCreation, dbDeletion, th, nextFile, nextClazz, binding, i+1, alreadyChecked, methodToInvoke, generatedFiles)); } if(listener == null) { + log.error("Unable to find the right listener"); return null; } if(!result.contains(listener)) {
participants (1)
-
kmorin@users.labs.libre-entreprise.org