- Revision
- 310
- Author
- mward
- Date
- 2007-09-11 21:47:23 -0500 (Tue, 11 Sep 2007)
Log Message
updated intellij modules for web examples to reference jstl and standard taglib jars. Added @SupressWarnings attr to several methods
Modified Paths
- trunk/core/src/main/java/org/codehaus/waffle/action/AbstractMethodDefinitionFinder.java
- trunk/core/src/main/java/org/codehaus/waffle/bind/OgnlDataBinder.java
- trunk/core/src/main/java/org/codehaus/waffle/bind/OgnlTypeConverter.java
- trunk/examples/jruby-example/jruby-example.iml
- trunk/examples/jruby-example/resources/foobar.jspx
- trunk/examples/mydvds-example/mydvds-example.iml
- trunk/examples/paranamer-example/paranamer-example.iml
- trunk/examples/simple-example/simple-example.iml
Diff
Modified: trunk/core/src/main/java/org/codehaus/waffle/action/AbstractMethodDefinitionFinder.java (309 => 310)
--- trunk/core/src/main/java/org/codehaus/waffle/action/AbstractMethodDefinitionFinder.java 2007-08-15 16:44:58 UTC (rev 309) +++ trunk/core/src/main/java/org/codehaus/waffle/action/AbstractMethodDefinitionFinder.java 2007-09-12 02:47:23 UTC (rev 310) @@ -150,8 +150,8 @@ * @return A List of methods * @throws NoMatchingMethodException if no methods match */ + @SuppressWarnings({"unchecked"}) private List<Method> findMethods(Class type, String methodName) { - //noinspection unchecked List<Method> methods = OgnlRuntime.getMethods(type, methodName, false); if (methods == null) { throw new NoMatchingMethodException(methodName, type);
Modified: trunk/core/src/main/java/org/codehaus/waffle/bind/OgnlDataBinder.java (309 => 310)
--- trunk/core/src/main/java/org/codehaus/waffle/bind/OgnlDataBinder.java 2007-08-15 16:44:58 UTC (rev 309) +++ trunk/core/src/main/java/org/codehaus/waffle/bind/OgnlDataBinder.java 2007-09-12 02:47:23 UTC (rev 310) @@ -37,8 +37,8 @@ this.bindErrorMessageResolver = bindErrorMessageResolver; } + @SuppressWarnings({"unchecked"}) public void bind(HttpServletRequest request, HttpServletResponse response, ErrorsContext errorsContext, Object model) { - //noinspection unchecked Enumeration<String> parameterNames = request.getParameterNames(); while (parameterNames.hasMoreElements()) {
Modified: trunk/core/src/main/java/org/codehaus/waffle/bind/OgnlTypeConverter.java (309 => 310)
--- trunk/core/src/main/java/org/codehaus/waffle/bind/OgnlTypeConverter.java 2007-08-15 16:44:58 UTC (rev 309) +++ trunk/core/src/main/java/org/codehaus/waffle/bind/OgnlTypeConverter.java 2007-09-12 02:47:23 UTC (rev 310) @@ -72,12 +72,12 @@ * @param toType * @return */ + @SuppressWarnings({"unchecked"}) public Object convertValue(String propertyName, String value, Class toType) { if (toType.isEnum()) { if ("".equals(value)) { return null; } - //noinspection unchecked return Enum.valueOf(toType, value); }
Modified: trunk/examples/jruby-example/jruby-example.iml (309 => 310)
--- trunk/examples/jruby-example/jruby-example.iml 2007-08-15 16:44:58 UTC (rev 309) +++ trunk/examples/jruby-example/jruby-example.iml 2007-09-12 02:47:23 UTC (rev 310) @@ -329,6 +329,7 @@ <SOURCES /> </library> </orderEntry> + <orderEntry type="module" module-name="taglib" /> <orderEntryProperties /> </component> </module>
Modified: trunk/examples/jruby-example/resources/foobar.jspx (309 => 310)
--- trunk/examples/jruby-example/resources/foobar.jspx 2007-08-15 16:44:58 UTC (rev 309) +++ trunk/examples/jruby-example/resources/foobar.jspx 2007-09-12 02:47:23 UTC (rev 310) @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:jsp="http://java.sun.com/JSP/Page" - xmlns:waffle="http://waffle.codehaus.org/tld"> + xmlns:waffle="http://waffle.codehaus.org"> <jsp:output doctype-root-element="html" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
Modified: trunk/examples/mydvds-example/mydvds-example.iml (309 => 310)
--- trunk/examples/mydvds-example/mydvds-example.iml 2007-08-15 16:44:58 UTC (rev 309) +++ trunk/examples/mydvds-example/mydvds-example.iml 2007-09-12 02:47:23 UTC (rev 310) @@ -81,6 +81,25 @@ <SOURCES /> </library> </orderEntry> + <orderEntry type="module" module-name="taglib" /> + <orderEntry type="module-library"> + <library> + <CLASSES> + <root url="" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + </orderEntry> + <orderEntry type="module-library"> + <library> + <CLASSES> + <root url="" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + </orderEntry> <orderEntryProperties /> </component> </module>
Modified: trunk/examples/paranamer-example/paranamer-example.iml (309 => 310)
--- trunk/examples/paranamer-example/paranamer-example.iml 2007-08-15 16:44:58 UTC (rev 309) +++ trunk/examples/paranamer-example/paranamer-example.iml 2007-09-12 02:47:23 UTC (rev 310) @@ -57,10 +57,9 @@ <attribute name="URI" value="/WEB-INF/lib/jstl-1.1.2.jar" /> <url>jar://$M2_REPOSITORY$/javax/servlet/jstl/1.1.2/jstl-1.1.2.jar!/</url> </containerElement> - <containerElement type="library" level="module"> + <containerElement type="library" name="servlet-api" level="module"> <attribute name="method" value="0" /> <attribute name="URI" value="<N/A>" /> - <url>jar://$M2_REPOSITORY$/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar!/</url> </containerElement> <containerElement type="library" level="module"> <attribute name="method" value="1" /> @@ -200,10 +199,9 @@ <attribute name="URI" value="/WEB-INF/lib/jstl-1.1.2.jar" /> <url>jar://$M2_REPOSITORY$/javax/servlet/jstl/1.1.2/jstl-1.1.2.jar!/</url> </containerElement> - <containerElement type="library" level="module"> + <containerElement type="library" name="servlet-api" level="module"> <attribute name="method" value="0" /> <attribute name="URI" value="<N/A>" /> - <url>jar://$M2_REPOSITORY$/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar!/</url> </containerElement> <containerElement type="library" level="module"> <attribute name="method" value="1" />
Modified: trunk/examples/simple-example/simple-example.iml (309 => 310)
--- trunk/examples/simple-example/simple-example.iml 2007-08-15 16:44:58 UTC (rev 309) +++ trunk/examples/simple-example/simple-example.iml 2007-09-12 02:47:23 UTC (rev 310) @@ -62,10 +62,9 @@ <attribute name="URI" value="/WEB-INF/lib/jstl-1.1.2.jar" /> <url>jar://$M2_REPOSITORY$/javax/servlet/jstl/1.1.2/jstl-1.1.2.jar!/</url> </containerElement> - <containerElement type="library" level="module"> + <containerElement type="library" name="servlet-api" level="module"> <attribute name="method" value="0" /> <attribute name="URI" value="<N/A>" /> - <url>jar://$M2_REPOSITORY$/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar!/</url> </containerElement> <containerElement type="library" level="module"> <attribute name="method" value="0" /> @@ -220,10 +219,9 @@ <attribute name="URI" value="/WEB-INF/lib/jstl-1.1.2.jar" /> <url>jar://$M2_REPOSITORY$/javax/servlet/jstl/1.1.2/jstl-1.1.2.jar!/</url> </containerElement> - <containerElement type="library" level="module"> + <containerElement type="library" name="servlet-api" level="module"> <attribute name="method" value="0" /> <attribute name="URI" value="<N/A>" /> - <url>jar://$M2_REPOSITORY$/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar!/</url> </containerElement> <containerElement type="library" level="module"> <attribute name="method" value="0" />
To unsubscribe from this list please visit:
