< prev index next >

test/langtools/tools/javac/diags/examples/RedundantTypesWithWildcardProc/processors/AnnoProc.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2010, 2019, 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) 2010, 2020, 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.
*** 24,34 **** import java.util.*; import javax.annotation.processing.*; import javax.lang.model.*; import javax.lang.model.element.*; ! @SupportedAnnotationTypes({"java.lang.SuppressWarnings", "*"}) public class AnnoProc extends AbstractProcessor { public boolean process(Set<? extends TypeElement> elems, RoundEnvironment renv) { return true; } --- 24,34 ---- import java.util.*; import javax.annotation.processing.*; import javax.lang.model.*; import javax.lang.model.element.*; ! @SupportedAnnotationTypes({"java.base/java.lang.SuppressWarnings", "*"}) public class AnnoProc extends AbstractProcessor { public boolean process(Set<? extends TypeElement> elems, RoundEnvironment renv) { return true; }
< prev index next >