This is an automated email from the ASF dual-hosted git repository.

technoboy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new d7f8f56b5be [fix][doc] Remove lombok plugin and define 
FunctionRecordBuilder explicitly (#19202)
d7f8f56b5be is described below

commit d7f8f56b5be5ad34cf1d33dd89b7bfc6a9ab94ff
Author: tison <[email protected]>
AuthorDate: Thu Jan 12 20:03:58 2023 +0800

    [fix][doc] Remove lombok plugin and define FunctionRecordBuilder explicitly 
(#19202)
---
 pom.xml                                                   | 15 ---------------
 .../apache/pulsar/functions/api/utils/FunctionRecord.java |  9 +++++++++
 2 files changed, 9 insertions(+), 15 deletions(-)

diff --git a/pom.xml b/pom.xml
index 61e69f6467e..3e293b21f44 100644
--- a/pom.xml
+++ b/pom.xml
@@ -285,7 +285,6 @@ flexible messaging model and an intuitive client 
API.</description>
     <dependency-check-maven.version>7.4.4</dependency-check-maven.version>
     <roaringbitmap.version>0.9.15</roaringbitmap.version>
     <extra-enforcer-rules.version>1.6.1</extra-enforcer-rules.version>
-    <lombok.plugin.version>1.18.20.0</lombok.plugin.version>
     <oshi.version>6.4.0</oshi.version>
 
     <!-- Used to configure rename.netty.native. Libs -->
@@ -1824,22 +1823,8 @@ flexible messaging model and an intuitive client 
API.</description>
           <configuration>
             <doclint>none</doclint>
             <notimestamp>true</notimestamp>
-            
<sourcepath>${project.build.directory}/generated-sources/delombok</sourcepath>
           </configuration>
         </plugin>
-        <plugin>
-          <groupId>org.projectlombok</groupId>
-          <artifactId>lombok-maven-plugin</artifactId>
-          <version>${lombok.plugin.version}</version>
-          <executions>
-            <execution>
-              <phase>generate-sources</phase>
-              <goals>
-                <goal>delombok</goal>
-              </goals>
-            </execution>
-          </executions>
-        </plugin>
         <plugin>
           <artifactId>maven-antrun-plugin</artifactId>
           <version>${maven-antrun-plugin.version}</version>
diff --git 
a/pulsar-functions/api-java/src/main/java/org/apache/pulsar/functions/api/utils/FunctionRecord.java
 
b/pulsar-functions/api-java/src/main/java/org/apache/pulsar/functions/api/utils/FunctionRecord.java
index eac062ff015..fd9e69f512e 100644
--- 
a/pulsar-functions/api-java/src/main/java/org/apache/pulsar/functions/api/utils/FunctionRecord.java
+++ 
b/pulsar-functions/api-java/src/main/java/org/apache/pulsar/functions/api/utils/FunctionRecord.java
@@ -39,6 +39,15 @@ public class FunctionRecord<T> implements Record<T> {
     private final Integer partitionIndex;
     private final Long recordSequence;
 
+    // Explicit define FunctionRecordBuilder to avoid javadoc failure
+    @SuppressWarnings("unused")
+    public static class FunctionRecordBuilder<T> {
+        /**
+         * Force to use {@link #from(Context, Schema)}.
+         */
+        private FunctionRecordBuilder() {}
+    }
+
     /**
      * Creates a builder for a Record from a Function Context.
      * The builder is initialized with the output topic from the Context and 
with the topicName, key, eventTime,

Reply via email to