Home > Back-end >  A heavyweight solution: Ant build. XML package, an error is as follows:
A heavyweight solution: Ant build. XML package, an error is as follows:

Time:09-29

Are trying to use is not compatible with the return type of
Find: Java. Lang. Object
Need: Java. Util. List

CodePudding user response:

1. Compile time take parameters - source 1.4
2. Using the @ SupressWarnings (" unchecked ") annotation
3. & lt; Compilerarg value="https://bbs.csdn.net/topics/-Xlint:unchecked"/& gt;
Add these parameters are useless, bin file is deleted, the clean packaging can't again, the JDK is 1.6
The return type of the source code for:
Pbulic List Method (Map) {
Return new ArrayList (a);

}
  • Related