From: Chad B. <cwb...@us...> - 2008-05-20 16:21:46
|
User: cwbrandon Date: 08/05/20 09:21:46 Modified: andromda-jsf2/src/main/resources/templates/jsf2/utils JsfUtils.java.vsl Log: fix typo Revision Changes Path 1.6 +2 -4 cartridges/andromda-jsf2/src/main/resources/templates/jsf2/utils/JsfUtils.java.vsl Index: JsfUtils.java.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-jsf2/src/main/resources/templates/jsf2/utils/JsfUtils.java.vsl,v retrieving revision 1.5 retrieving revision 1.6 diff -u -w -r1.5 -r1.6 --- JsfUtils.java.vsl 16 May 2008 19:05:33 -0000 1.5 +++ JsfUtils.java.vsl 20 May 2008 16:21:46 -0000 1.6 @@ -209,7 +209,7 @@ try { final java.lang.reflect.Method method = object.getClass().getMethod("getAttribute", new Class[]{String.class}); - method.invoke(object, new Object[]{attributeName}); + attribute = method.invoke(object, new Object[]{attributeName}); } catch (NoSuchMethodException exception) { @@ -232,11 +232,10 @@ * @param attributeValue the value of the attribute to set. * @return the value of the attribute if one is present. */ - public static Object setAttribute(final Object object, final String attributeName, final Object attributeValue) + public static void setAttribute(final Object object, final String attributeName, final Object attributeValue) { try { - Object attribute = null; if (object != null) { try @@ -248,7 +247,6 @@ { } } - return attribute; } catch (Exception exception) { |