aboutsummaryrefslogtreecommitdiff
path: root/src/utils/lombok/javac/JavacTreeMaker.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2020-01-08 01:06:35 +0100
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2020-01-08 01:06:35 +0100
commit9ad2bd563b001c0742d767fea9ddaaeb60400ec7 (patch)
tree82d9653d555b46b1a42f7c8086e87bd6aefd16a8 /src/utils/lombok/javac/JavacTreeMaker.java
parent0b0656ae3c38ae915c86e17c2744d5e3d8fc805c (diff)
downloadlombok-9ad2bd563b001c0742d767fea9ddaaeb60400ec7.tar.gz
lombok-9ad2bd563b001c0742d767fea9ddaaeb60400ec7.tar.bz2
lombok-9ad2bd563b001c0742d767fea9ddaaeb60400ec7.zip
[fixes #788] lombok generated equals method plus a non-null-by-default annotation no longer clash.
Diffstat (limited to 'src/utils/lombok/javac/JavacTreeMaker.java')
-rw-r--r--src/utils/lombok/javac/JavacTreeMaker.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/utils/lombok/javac/JavacTreeMaker.java b/src/utils/lombok/javac/JavacTreeMaker.java
index 84293f11..20f4b66d 100644
--- a/src/utils/lombok/javac/JavacTreeMaker.java
+++ b/src/utils/lombok/javac/JavacTreeMaker.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2013-2018 The Project Lombok Authors.
+ * Copyright (C) 2013-2020 The Project Lombok Authors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -864,6 +864,12 @@ public class JavacTreeMaker {
return invoke(TypeAnnotationWithAttributeOnly, a);
}
+ //javac versions: 8
+ private static final MethodId<JCExpression> AnnotatedType = MethodId("AnnotatedType", JCExpression.class, List.class, JCExpression.class);
+ public JCExpression AnnotatedType(List<JCAnnotation> annotations, JCExpression underlyingType) {
+ return invoke(AnnotatedType, annotations, underlyingType);
+ }
+
//javac versions: 6-8
private static final MethodId<JCStatement> Call = MethodId("Call");
public JCStatement Call(JCExpression apply) {