I got following wornings when I compile the source:

c:\java_dev\itext\1.4.5\source_code>ant jar
Buildfile: build.xml

jar:

compile:
   [delete] Deleting directory 
C:\java_dev\itext\1.4.5\source_code\build\bin\cla
sses
    [mkdir] Created dir: 
C:\java_dev\itext\1.4.5\source_code\build\bin\classes
    [javac] Compiling 486 source files to 
C:\java_dev\itext\1.4.5\source_code\bu
ild\bin\classes
    [javac] 
C:\java_dev\itext\1.4.5\source_code\src\com\lowagie\text\pdf\MappedR
andomAccessFile.java:204: warning: non-varargs call of varargs method 
with inexa
ct argument type for last parameter;
    [javac] cast to java.lang.Class for a varargs call
    [javac] cast to java.lang.Class[] for a non-varargs call and to 
suppress thi
s warning
    [javac]                     Method getCleanerMethod = 
buffer.getClass().getM
ethod("cleaner", null);
    [javac]
                 ^
    [javac] 
C:\java_dev\itext\1.4.5\source_code\src\com\lowagie\text\pdf\MappedR
andomAccessFile.java:206: warning: non-varargs call of varargs method 
with inexa
ct argument type for last parameter;
    [javac] cast to java.lang.Object for a varargs call
    [javac] cast to java.lang.Object[] for a non-varargs call and to 
suppress th
is warning
    [javac]                     Object cleaner = 
getCleanerMethod.invoke(buffer,
 null);
    [javac]
 ^
    [javac] 
C:\java_dev\itext\1.4.5\source_code\src\com\lowagie\text\pdf\MappedR
andomAccessFile.java:207: warning: non-varargs call of varargs method 
with inexa
ct argument type for last parameter;
    [javac] cast to java.lang.Class for a varargs call
    [javac] cast to java.lang.Class[] for a non-varargs call and to 
suppress thi
s warning
    [javac]                     Method clean = 
cleaner.getClass().getMethod("cle
an", null);
    [javac]
     ^
    [javac] 
C:\java_dev\itext\1.4.5\source_code\src\com\lowagie\text\pdf\MappedR
andomAccessFile.java:208: warning: non-varargs call of varargs method 
with inexa
ct argument type for last parameter;
    [javac] cast to java.lang.Object for a varargs call
    [javac] cast to java.lang.Object[] for a non-varargs call and to 
suppress th
is warning
    [javac]                     clean.invoke(cleaner, null);
    [javac]                                           ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 4 warnings

How do we get ride of these warnings?

-Henry

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to