Details
-
Type: Bug
-
Status: Closed
-
Priority: 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);
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
Arran Mccullough
created issue -
Arran Mccullough
made changes -
Field | Original Value | New Value |
---|---|---|
Priority | Major [ 3 ] | Trivial [ 5 ] |
Arran Mccullough
made changes -
Salesforce Case Reference | 5007000000RTprJAAT |
Patrick Corless
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Fix Version/s | 5.1 [ 10675 ] | |
Resolution | Fixed [ 1 ] |
Patrick Corless
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
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.