Skip to content

Commit

Permalink
feat : add notnull for kotlin compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
wwan13 committed Jun 20, 2024
1 parent 279bbc0 commit 65394f0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@

import io.wwan13.wintersecurity.jwt.support.JwtPropertiesRegistry;

import javax.validation.constraints.NotNull;

public interface JwtProviderConfigurer extends SecretKeyConfigurer {

void configureJwt(JwtPropertiesRegistry registry);
void configureJwt(@NotNull JwtPropertiesRegistry registry);
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@

import io.wwan13.wintersecurity.secretkey.support.SecretKeyRegistry;

import javax.validation.constraints.NotNull;

public interface SecretKeyConfigurer {

void configureSecretKey(SecretKeyRegistry registry);
void configureSecretKey(@NotNull SecretKeyRegistry registry);
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@
import io.wwan13.wintersecurity.auth.authpattern.support.AuthPatternsRegistry;
import io.wwan13.wintersecurity.resolve.support.TargetAnnotationsRegistry;

import javax.validation.constraints.NotNull;

public interface SecureRequestConfigurer extends SecretKeyConfigurer {

void registerAuthPatterns(AuthPatternsRegistry registry);
void registerAuthPatterns(@NotNull AuthPatternsRegistry registry);

void registerTargetAnnotations(TargetAnnotationsRegistry registry);
default void registerTargetAnnotations(@NotNull TargetAnnotationsRegistry registry) {
}
}

0 comments on commit 65394f0

Please sign in to comment.