ICEpdf
  1. ICEpdf
  2. PDF-566

Warnings displayed when compiling with -Xlint:unchecked

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 4.3.4, 5.0
    • Fix Version/s: 5.1
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      All
    • Salesforce Case Reference:

      Description

      The following sample warnings can be seen when compiling the code with -Xlint:unchecked:

      C:\ICEpdf\ICEpdf-pro-4.3.4-src\ICEpdf-pro-4.3.4\src\org\icepdf\ri\common\SwingViewBuilder.java:1042: warning: [unchecked] unchecked call to set(int,E) as a member of the raw type java.util.List
                      windowDocOriginList.set(i, identifier);
      C:\ICEpdf\ICEpdf-pro-4.3.4-src\ICEpdf-pro-4.3.4\src\org\icepdf\ri\util\BareBonesBrowserLaunch.java:62: warning: [unchecked] unchecked call to getDeclaredMethod(java.lang.String,java.lang.Class<?>...) as a member of the raw type java.lang.Class
                      Method openURL = fileMgr.getDeclaredMethod("openURL",
      C:\ICEpdf\ICEpdf-pro-4.3.4-src\ICEpdf-pro-4.3.4\src\org\icepdf\ri\viewer\WindowManager.java:98: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
              controllers.add(controller);
      C:\ICEpdf\ICEpdf-pro-4.3.4-src\ICEpdf-pro-4.3.4\src\org\icepdf\ri\viewer\WindowManager.java:245: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.List
                  list.add(toAdd);
      C:\ICEpdf\ICEpdf-pro-4.3.4-src\ICEpdf-pro-4.3.4\src\org\icepdf\ri\viewer\WindowManager.java:248: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.List
                  list.add(foundIndex);

        Activity

        Hide
        Patrick Corless added a comment -

        Added -Xlint to Ant build scripts to reproduce various build warning reported by a client. I've updated the core and viewer code so that they now compile without any errors.

        Show
        Patrick Corless added a comment - Added -Xlint to Ant build scripts to reproduce various build warning reported by a client. I've updated the core and viewer code so that they now compile without any errors.

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: