If it is shown in Chinese, it means:
Note: A.java USES unchecked or unsafe operations.
Note: For details, use -Xlint: Unchecked recompile.
JAVA5.0 generics are used, but the 5.0 generics do not do type checking. For example, ArrayList a =new ArrayList();
a.add(“hello”); There are several solutions to this warning:
1) Prefix a method with @Suppresswarnings (“unchecked”)
2) declare generic types, such as ArrayList< Object> A = new ArrayList< Object> (a);
3) Compile with 1.4 COMPATIBLE JDK, Javac-Source 1.4 test.java
4) You can also view warning messages like Javac Xlint: Unchecked test.java. This will display the detailed warning information
Read More:
- Unity3D error CS0227: Unsafe code may only appear if compiling with /unsafe…
- How to Root the Samsung Galaxy Note 2 (GT-N7100)
- Red rice note3 (Kenzo) is brushed into lineage OS
- R note for Bioinfo: the column for the select call is undefined
- Http Error 12057 (Bug Fix Note)
- kafka-eagle-2.0.3:Note: Kafka version is – or JMX Port is -1 maybe kafka broker jmxport disable.
- On the use of cnzz statistics advertising research note
- Please note that the module “sacrableu” has no “compute blue” attribute
- Java learning error information 3 — Java notes
- [resolved] error: Java: illegal character: ‘\ ufef’ or error: Java: class, interface or enum required
- Could not find appears when JDK is configured java.dll Could not find Java se runtime environment problems
- Eclipse startup error: a Java runtime environment (JRE) or Java Development Kit (JDK) must be available
- Compiling the pi_kernel source code appears: fatal error: openssl/opensslv.h: No such file or directory
- Vue — run ‘NPM audit fix’ to fix them, or ‘NPM audit’ for details appears when initializing the installation
- Error: could not find java.dll Error: could not find Java se runtime environment solution
- Android appears java.lang.NoClassDefFoundError A solution to the error
- Eclipse:An error has occurred. See error log for more details. java.lang.NullPointerException
- Error parsing HTTP request header Note: further occurrences of HTTP header p
- Springboot project: error parsing HTTP request header note: further occurrences of HTTP request parsing
- Error in idea compilation: java.lang.OutOfMemoryError Java heap space and java.lang.StackOverflowError