-
dealing with compiler warnings
Hi there,
I'm using JDK 1.5 and created an instance of an ArrayList, then after loading the ArrayList I passed it as an arguement to the Collections.sort(...) method. When I compile using:
javac -Xlint:unchecked -classpath "C:\Program Files\Apache Softwa
re Foundation\Tomcat 5.5\common\lib\servlet-api.jar;C:\Program Files\Apache Soft
ware Foundation\Tomcat 5.5\common\lib\jsp-api.jar;C:\Program Files\Apache Softwa
re Foundation\Tomcat 5.5\webapps\scholastic\WEB-INF\classes;C:\Program Files\Apa
che Software Foundation\Tomcat 5.5\webapps\scholastic\WEB-INF\classes\mvcs;C:\Pr
ogram Files\Apache Software Foundation\Tomcat 5.5\webapps\scholastic\WEB-INF\cla
sses\com\components;C:\Program Files\Apache Software Foundation\Tomcat 5.5\webap
ps\scholastic\WEB-INF\classes\com\ezjavabeans\ezsmtp;C:\Program Files\Apache Sof
tware Foundation\Tomcat 5.5\webapps\scholastic\WEB-INF\lib\jasperreports-0.6.7.j
ar" *.java
I got the following warning message:
TestProcessor.java:153: warning: [unchecked] unchecked method invocation: <T>sor
t(java.util.List<T>) in java.util.Collections is applied to (java.util.ArrayList
<mvcs.TestProcessor.Answer>)
Collections.sort(list);
^
1 warning
What is it I need to do further to prevent this warning message from popping up all the time? Am I supposed to ignore it or is there something I'm expected to do to prevent this warning message?
Please advise,
Alan
Similar Threads
-
By swapnil_paranja in forum C++
Replies: 1
Last Post: 07-05-2005, 11:15 AM
-
Replies: 4
Last Post: 03-23-2005, 05:33 PM
-
By Jeff Johnson in forum .NET
Replies: 2
Last Post: 07-25-2002, 01:57 PM
-
By YC Choo in forum Database
Replies: 5
Last Post: 09-03-2001, 01:42 PM
-
By John Knoop in forum .NET
Replies: 5
Last Post: 10-28-2000, 04:38 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks