You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Robert Liguori (JIRA)" <ji...@apache.org> on 2010/10/22 21:10:18 UTC

[jira] Commented: (CXF-3083) Build warnings related to Generics: return type requires unchecked conversion

    [ https://issues.apache.org/jira/browse/CXF-3083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12923976#action_12923976 ] 

Robert Liguori commented on CXF-3083:
-------------------------------------

Here's another issue related to generics... this could be cleaned up to.

[INFO] ------------------------------------------------------------------------
[INFO] Building Apache CXF Runtime SDO DataBinding
[INFO]    task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
...
[WARNING] \_CXF\apache-cxf-2.3.0-src\apache-cxf-2.3.0-src\rt\databinding\sdo\target\generated\src\test\java\helloworld\static_types\sdo\impl\StructureImpl.java:[438,21] [unchecked] unchecked call to addAll(java.util.Collection<? extends E>) as a member of the raw type java.util.List
...



> Build warnings related to Generics: return type requires unchecked conversion
> -----------------------------------------------------------------------------
>
>                 Key: CXF-3083
>                 URL: https://issues.apache.org/jira/browse/CXF-3083
>             Project: CXF
>          Issue Type: Improvement
>    Affects Versions: 2.3.0
>         Environment: Apache CXF 2.3.0
> OS: Microsoft Windows XP, Professional, Version 2002, Service Pack 3
> Build Command: (mvn -e clean install)
>            Reporter: Robert Liguori
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Generic warnings are seen during the CXF Runtime HTTP Transport build.  Consider fixed based on output suggestions or if absolutely necessary use this annotation: @SuppressWarnings("unchecked").
> Related build output:
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Apache CXF Runtime HTTP Transport
> [INFO]    task-segment: [clean, install]
> [INFO] ------------------------------------------------------------------------
> [INFO] [clean:clean {execution: default-clean}]
> [INFO] Deleting C:\_CXF\apache-cxf-2.3.0-src\apache-cxf-2.3.0-src\rt\transports\http\target
> [INFO] [checkstyle:checkstyle {execution: validate}]
> [INFO] Starting audit...
> Audit done.
> [INFO] Preparing pmd:check
> [INFO] [pmd:pmd {execution: pmd}]
> [INFO] [pmd:check {execution: validate}]
> [INFO] 
> [INFO] [cxf-xml2fastinfoset:xml2fastinfoset {execution: xml2fastinfoset}]
> [INFO] [cxf-xjc:xsdtojava {execution: generate-sources}]
> [INFO] [remote-resources:process {execution: default}]
> [INFO] [resources:resources {execution: default-resources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 6 resources
> [INFO] Copying 10 resources
> [INFO] skip non existing resourceDirectory C:\_CXF\apache-cxf-2.3.0-src\apache-cxf-2.3.0-src\rt\transports\http\src\main\resources-filtered
> [INFO] Copying 2 resources
> [INFO] Copying 3 resources
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] Compiling 60 source files to C:\_CXF\apache-cxf-2.3.0-src\apache-cxf-2.3.0-src\rt\transports\http\target\classes
> [WARNING] \_CXF\apache-cxf-2.3.0-src\apache-cxf-2.3.0-src\rt\transports\http\src\main\java\org\apache\cxf\transport\http\HttpServletRequestSnapshot.java:[136,23] getHeaders(java.lang.String) in org.apache.cxf.transport.http.HttpServletRequestSnapshot implements getHeaders(java.lang.String) in javax.servlet.http.HttpServletRequest; return type requires unchecked conversion
> found   : java.util.Enumeration
> required: java.util.Enumeration<java.lang.String>
> [WARNING] \_CXF\apache-cxf-2.3.0-src\apache-cxf-2.3.0-src\rt\transports\http\src\main\java\org\apache\cxf\transport\http\HttpServletRequestSnapshot.java:[130,23] getHeaderNames() in org.apache.cxf.transport.http.HttpServletRequestSnapshot implements getHeaderNames() in javax.servlet.http.HttpServletRequest; return type requires unchecked conversion
> found   : java.util.Enumeration
> required: java.util.Enumeration<java.lang.String>
> [WARNING] \_CXF\apache-cxf-2.3.0-src\apache-cxf-2.3.0-src\rt\transports\http\src\main\java\org\apache\cxf\transport\http\HttpServletRequestSnapshot.java:[232,23] getLocales() in org.apache.cxf.transport.http.HttpServletRequestSnapshot implements getLocales() in javax.servlet.ServletRequest; return type requires unchecked conversion
> found   : java.util.Enumeration
> required: java.util.Enumeration<java.util.Locale>
> ...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.