equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 2014, 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. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
58 import javax.lang.model.type.ArrayType; |
58 import javax.lang.model.type.ArrayType; |
59 import javax.lang.model.type.DeclaredType; |
59 import javax.lang.model.type.DeclaredType; |
60 import javax.lang.model.type.TypeMirror; |
60 import javax.lang.model.type.TypeMirror; |
61 import javax.lang.model.type.TypeVisitor; |
61 import javax.lang.model.type.TypeVisitor; |
62 import javax.lang.model.util.ElementFilter; |
62 import javax.lang.model.util.ElementFilter; |
63 import javax.lang.model.util.SimpleTypeVisitor8; |
63 import javax.lang.model.util.SimpleTypeVisitor9; |
64 import javax.lang.model.util.Types; |
64 import javax.lang.model.util.Types; |
65 |
65 |
66 import javax.tools.Diagnostic; |
66 import javax.tools.Diagnostic; |
67 import javax.tools.DiagnosticListener; |
67 import javax.tools.DiagnosticListener; |
68 import javax.tools.JavaCompiler; |
68 import javax.tools.JavaCompiler; |
736 } |
736 } |
737 } |
737 } |
738 } |
738 } |
739 |
739 |
740 private TypeVisitor<Void,Types> checkMethodParametersVisitor = |
740 private TypeVisitor<Void,Types> checkMethodParametersVisitor = |
741 new SimpleTypeVisitor8<Void,Types>() { |
741 new SimpleTypeVisitor9<Void,Types>() { |
742 @Override |
742 @Override |
743 public Void visitArray(ArrayType t, Types types) { |
743 public Void visitArray(ArrayType t, Types types) { |
744 visit(t.getComponentType(), types); |
744 visit(t.getComponentType(), types); |
745 return null; |
745 return null; |
746 } |
746 } |