|
Java example source code file (T6227617.java)
The T6227617.java Java example source code/* * @test /nodynamiccopyright/ * @bug 6227617 * @summary Lint option for redundant casts * @compile -Werror T6227617.java * @compile/ref=T6227617.out -XDrawDiagnostics -Xlint:cast T6227617.java */ import java.util.HashMap; import java.util.Map; class T6227617 { void m() { int i1 = 2; int i2 = (int) i1; // warn float f1 = 1f; int i3 = (int) f1; String s = (String) ""; // warn Object o = (Object) ""; Map<String, Integer> m = new HashMap Other Java examples (source code examples)Here is a short list of links related to this Java T6227617.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.