fixup: adding module-info

Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
This commit is contained in:
Simon Schrottner 2025-04-09 12:54:34 +02:00
parent d65a154510
commit 200252bf6a
4 changed files with 27 additions and 5 deletions

12
pom.xml
View File

@ -21,6 +21,7 @@
<skip.tests>false</skip.tests>
<!-- this will throw an error if we use wrong apis -->
<maven.compiler.release>11</maven.compiler.release>
<lombok.version>1.18.38</lombok.version>
</properties>
<name>OpenFeature Java SDK</name>
@ -54,7 +55,7 @@
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.38</version>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
@ -263,6 +264,15 @@
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.14.0</version>
<configuration>
<annotationProcessorPaths>
<annotationProcessorPath>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</annotationProcessorPath>
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>

View File

@ -46,6 +46,11 @@
<Class name="dev.openfeature.sdk.FlagValueType"/>
<Bug pattern="PI_DO_NOT_REUSE_PUBLIC_IDENTIFIERS_FIELD_NAMES"/>
</And>
<And>
we can ignore return values of chainables (builders) here
<Class name="dev.openfeature.sdk.hooks.logging.LoggingHook"/>
<Bug pattern="RV_RETURN_VALUE_IGNORED" />
</And>
<!-- Test class that should be excluded -->
<Match>
@ -58,4 +63,4 @@
<Bug code="IJU" />
</Not>
</Match>
</FindBugsFilter>
</FindBugsFilter>

View File

@ -17,9 +17,6 @@ import org.slf4j.spi.LoggingEventBuilder;
* Flag evaluation data is logged at debug and error in before/after stages and error stages, respectively.
*/
@Slf4j
@edu.umd.cs.findbugs.annotations.SuppressFBWarnings(
value = "RV_RETURN_VALUE_IGNORED",
justification = "we can ignore return values of chainables (builders) here")
public class LoggingHook implements Hook<Object> {
static final String DOMAIN_KEY = "domain";

View File

@ -0,0 +1,10 @@
module dev.openfeature.sdk {
requires static lombok;
requires org.slf4j;
requires com.github.spotbugs.annotations;
exports dev.openfeature.sdk;
exports dev.openfeature.sdk.exceptions;
exports dev.openfeature.sdk.hooks.logging;
exports dev.openfeature.sdk.providers.memory;
}