Skip to content

Commit

Permalink
[fix][doc] Remove lombok plugin and define FunctionRecordBuilder expl…
Browse files Browse the repository at this point in the history
…icitly (apache#19202)
  • Loading branch information
tisonkun authored Jan 12, 2023
1 parent 4d57828 commit d7f8f56
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
15 changes: 0 additions & 15 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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 -->
Expand Down Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d7f8f56

Please sign in to comment.