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

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2006, 2011 Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 66,76 **** processingEnv.getMessager().printMessage(ERROR, "Deprecation mismatch found!"); } return true; } ! private class DeprecationChecker extends ElementScanner7<Boolean,Void> { private Elements elementUtils; private boolean failure; DeprecationChecker() { super(false); elementUtils = processingEnv.getElementUtils(); --- 66,76 ---- processingEnv.getMessager().printMessage(ERROR, "Deprecation mismatch found!"); } return true; } ! private class DeprecationChecker extends ElementScanner<Boolean,Void> { private Elements elementUtils; private boolean failure; DeprecationChecker() { super(false); elementUtils = processingEnv.getElementUtils();