You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by te...@apache.org on 2023/02/08 08:17:31 UTC
[pulsar] branch branch-2.11 updated: [fix][doc] Remove lombok plugin and define FunctionRecordBuilder explicitly (#19202)
This is an automated email from the ASF dual-hosted git repository.
technoboy pushed a commit to branch branch-2.11
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/branch-2.11 by this push:
new 6baa805447e [fix][doc] Remove lombok plugin and define FunctionRecordBuilder explicitly (#19202)
6baa805447e is described below
commit 6baa805447e55024b7ed073d0b7430211089eb29
Author: tison <wa...@gmail.com>
AuthorDate: Thu Jan 12 20:03:58 2023 +0800
[fix][doc] Remove lombok plugin and define FunctionRecordBuilder explicitly (#19202)
---
pom.xml | 16 +---------------
.../pulsar/functions/api/utils/FunctionRecord.java | 9 +++++++++
2 files changed, 10 insertions(+), 15 deletions(-)
diff --git a/pom.xml b/pom.xml
index f4fb4fc0f8a..4ba06fe5b55 100644
--- a/pom.xml
+++ b/pom.xml
@@ -282,7 +282,7 @@ 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 -->
<rename.netty.native.libs>rename-netty-native-libs.sh</rename.netty.native.libs>
@@ -1850,22 +1850,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 c7cb1a6480a..9a434f13496 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,