diff --git a/etc/forbidden-apis.txt b/etc/forbidden-apis.txt new file mode 100644 index 000000000..b0e7d6203 --- /dev/null +++ b/etc/forbidden-apis.txt @@ -0,0 +1,4 @@ + +@defaultMessage TypeMirror equals and hashCode are not stable. Types.isSameType(TypeMirror, TypeMirror) should be used +javax.lang.model.type.TypeMirror#hashCode() +javax.lang.model.type.TypeMirror#equals(java.lang.Object) diff --git a/parent/pom.xml b/parent/pom.xml index 531714a9f..d18683976 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -506,6 +506,16 @@ properties-maven-plugin 1.0-alpha-2 + + de.thetaphi + forbiddenapis + 2.3 + + + ${project.basedir}/../etc/forbidden-apis.txt + + + @@ -525,6 +535,7 @@ **/mapstruct.xml **/toolchains-*.xml **/eclipse-formatter-config.xml + **/forbidden-apis.txt **/checkstyle-for-generated-sources.xml **/nb-configuration.xml maven-settings.xml diff --git a/processor/pom.xml b/processor/pom.xml index 30594a6e6..06d88925c 100644 --- a/processor/pom.xml +++ b/processor/pom.xml @@ -319,6 +319,17 @@ + + de.thetaphi + forbiddenapis + + + + check + + + +