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

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


The following commit(s) were added to refs/heads/master by this push:
     new d19ea952379 Automatically generate package-info.java with not null 
annotations (#17327)
d19ea952379 is described below

commit d19ea95237918ea14b892805cf706f09e69ca6d4
Author: Gonzalo Ortiz Jaureguizar <[email protected]>
AuthorDate: Mon Dec 15 19:06:20 2025 +0100

    Automatically generate package-info.java with not null annotations (#17327)
    
    This can be used by the tools (including the IDE) to find bugs
---
 pinot-dependency-verifier/pom.xml |  4 ++++
 pom.xml                           | 23 +++++++++++++++++++++++
 2 files changed, 27 insertions(+)

diff --git a/pinot-dependency-verifier/pom.xml 
b/pinot-dependency-verifier/pom.xml
index 631717da35f..f01ce8ee24d 100644
--- a/pinot-dependency-verifier/pom.xml
+++ b/pinot-dependency-verifier/pom.xml
@@ -36,6 +36,10 @@
   </properties>
 
   <dependencies>
+    <dependency>
+      <groupId>com.google.code.findbugs</groupId>
+      <artifactId>jsr305</artifactId>
+    </dependency>
     <dependency>
       <groupId>org.apache.maven.enforcer</groupId>
       <artifactId>enforcer-api</artifactId>
diff --git a/pom.xml b/pom.xml
index f4e8484ab5f..ba4d1a41880 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2944,6 +2944,29 @@
           </properties>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>de.shadowhunt.maven.plugins</groupId>
+        <artifactId>package-info-maven-plugin</artifactId>
+        <version>2.0.0</version>
+        <executions>
+          <execution>
+            <phase>generate-sources</phase>
+            <goals>
+              <goal>package-info</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <packages>
+            <package regex="org.apache.pinot.**">
+              <annotations>
+                
<annotation>@javax.annotation.ParametersAreNonnullByDefault</annotation>
+                <annotation>@org.jspecify.annotations.NullMarked</annotation>
+              </annotations>
+            </package>
+          </packages>
+        </configuration>
+      </plugin>
     </plugins>
   </build>
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to