test/tools/javac/processing/model/util/deprecation/TestDeprecation.java

changeset 1054
111bbf1ad913
parent 1013
8eb952f43b11
child 1448
7d34e91f66bb
child 1466
b52a38d4536c
equal deleted inserted replaced
1053:0d8edba73d70 1054:111bbf1ad913
1 /* 1 /*
2 * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2006, 2011 Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
66 processingEnv.getMessager().printMessage(ERROR, "Deprecation mismatch found!"); 66 processingEnv.getMessager().printMessage(ERROR, "Deprecation mismatch found!");
67 } 67 }
68 return true; 68 return true;
69 } 69 }
70 70
71 private class DeprecationChecker extends ElementScanner7<Boolean,Void> { 71 private class DeprecationChecker extends ElementScanner<Boolean,Void> {
72 private Elements elementUtils; 72 private Elements elementUtils;
73 private boolean failure; 73 private boolean failure;
74 DeprecationChecker() { 74 DeprecationChecker() {
75 super(false); 75 super(false);
76 elementUtils = processingEnv.getElementUtils(); 76 elementUtils = processingEnv.getElementUtils();

mercurial