langtools/test/tools/javac/processing/model/util/deprecation/TestDeprecation.java
changeset 10192 378321489bea
parent 9744 3e48977e539d
child 14963 974d4423c999
child 14870 1a2371de04d8
equal deleted inserted replaced
10191:9e93a8e0a880 10192:378321489bea
     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();