Skip to content

Commit e1fda4f

Browse files
committed
CLN: Removed redundant isEnabled() in PasetoConfiguration interface
1 parent 12253c2 commit e1fda4f

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

security-paseto/src/main/java/io/micronaut/security/token/paseto/config/PasetoConfiguration.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,4 @@
2626
*/
2727
public interface PasetoConfiguration extends Toggleable {
2828

29-
/**
30-
*
31-
* @return a boolean flag indicating whether PASETO beans should be enabled or not
32-
*/
33-
@Override
34-
boolean isEnabled();
3529
}

security-paseto/src/main/java/io/micronaut/security/token/paseto/config/PasetoConfigurationProperties.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ public class PasetoConfigurationProperties implements PasetoConfiguration {
4040

4141
private boolean enabled = DEFAULT_ENABLED;
4242

43+
/**
44+
*
45+
* @return a boolean flag indicating whether PASETO beans should be enabled or not
46+
*/
4347
@Override
4448
public boolean isEnabled() {
4549
return enabled;

0 commit comments

Comments
 (0)