Skip to content

Commit

Permalink
Remove Lombok onMethod that break javadoc
Browse files Browse the repository at this point in the history
I may be use _delombok_ https://stackoverflow.com/a/51947792/636472 but for only one field I still prefer manually delombok inside source

fixes #146
  • Loading branch information
kakawait committed Sep 4, 2020
1 parent 0964774 commit dc35966
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.kakawait.spring.boot.security.cas.autoconfigure;

import lombok.Data;
import lombok.Getter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.DeprecatedConfigurationProperty;

Expand Down Expand Up @@ -39,17 +38,21 @@ public class CasSecurityProperties {
/**
* Comma-separated list of paths to secure.
*/
private String[] paths = new String[] { "/**" };
private String[] paths = new String[]{"/**"};

/**
* Security authorize mode to apply.
*/
@Getter(onMethod_ = {@Deprecated,
@DeprecatedConfigurationProperty(replacement = "security.cas.authorization.mode")})
private SecurityAuthorizeMode authorizeMode = SecurityAuthorizeMode.AUTHENTICATED;

private ProxyValidation proxyValidation = new ProxyValidation();

@Deprecated
@DeprecatedConfigurationProperty(replacement = "security.cas.authorization.mode")
public SecurityAuthorizeMode getAuthorizeMode() {
return authorizeMode;
}

public enum ServiceResolutionMode {
STATIC, DYNAMIC
}
Expand Down

0 comments on commit dc35966

Please sign in to comment.