Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
123456789101112131415 |
- import org.aspectj.testing.Tester;
-
- public class CastingFoldedValues {
- static final char i = 'c';
-
- static boolean foundChar = false;
-
- static void foo(char c) { foundChar = true; }
- static void foo(int c) { }
-
- public static void main(String[] args) {
- foo(i);
- Tester.check(foundChar, "forgot to cast folded char down to char type");
- }
- }
|