Skip to content

Commit 77558e6

Browse files
committed
Fix checkstyle
1 parent c5ce3bb commit 77558e6

File tree

5 files changed

+91
-11
lines changed

5 files changed

+91
-11
lines changed

ldap/src/main/java/org/springframework/security/ldap/jackson2/InetOrgPersonMixin.java

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
1-
package org.springframework.security.ldap.jackson2;
1+
/*
2+
* Copyright 2015-2020 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
216

3-
import org.springframework.security.jackson2.SecurityJackson2Modules;
17+
package org.springframework.security.ldap.jackson2;
418

519
import com.fasterxml.jackson.annotation.JsonAutoDetect;
620
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
721
import com.fasterxml.jackson.annotation.JsonTypeInfo;
822

23+
import org.springframework.security.jackson2.SecurityJackson2Modules;
24+
925
/**
1026
* This is a Jackson mixin class helps in serialize/deserialize
1127
* {@link org.springframework.security.ldap.userdetails.InetOrgPerson} class. To use this

ldap/src/main/java/org/springframework/security/ldap/jackson2/LdapAuthorityMixin.java

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,32 @@
1+
/*
2+
* Copyright 2015-2020 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package org.springframework.security.ldap.jackson2;
218

319
import java.util.List;
420
import java.util.Map;
521

6-
import org.springframework.security.jackson2.SecurityJackson2Modules;
7-
822
import com.fasterxml.jackson.annotation.JsonAutoDetect;
923
import com.fasterxml.jackson.annotation.JsonCreator;
1024
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
1125
import com.fasterxml.jackson.annotation.JsonProperty;
1226
import com.fasterxml.jackson.annotation.JsonTypeInfo;
1327

28+
import org.springframework.security.jackson2.SecurityJackson2Modules;
29+
1430
/**
1531
* This is a Jackson mixin class helps in serialize/deserialize
1632
* {@link org.springframework.security.ldap.userdetails.LdapAuthority} class. To use this

ldap/src/main/java/org/springframework/security/ldap/jackson2/LdapJackson2Module.java

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,30 @@
1+
/*
2+
* Copyright 2015-2020 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package org.springframework.security.ldap.jackson2;
218

19+
import com.fasterxml.jackson.core.Version;
20+
import com.fasterxml.jackson.databind.module.SimpleModule;
21+
322
import org.springframework.security.jackson2.SecurityJackson2Modules;
423
import org.springframework.security.ldap.userdetails.InetOrgPerson;
524
import org.springframework.security.ldap.userdetails.LdapAuthority;
625
import org.springframework.security.ldap.userdetails.LdapUserDetailsImpl;
726
import org.springframework.security.ldap.userdetails.Person;
827

9-
import com.fasterxml.jackson.core.Version;
10-
import com.fasterxml.jackson.databind.module.SimpleModule;
11-
1228
/**
1329
* Jackson module for spring-security-ldap. This module registers
1430
* {@link LdapAuthorityMixin}, {@link LdapUserDetailsImplMixin}, {@link PersonMixin},

ldap/src/main/java/org/springframework/security/ldap/jackson2/LdapUserDetailsImplMixin.java

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
1-
package org.springframework.security.ldap.jackson2;
1+
/*
2+
* Copyright 2015-2020 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
216

3-
import org.springframework.security.jackson2.SecurityJackson2Modules;
17+
package org.springframework.security.ldap.jackson2;
418

519
import com.fasterxml.jackson.annotation.JsonAutoDetect;
620
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
721
import com.fasterxml.jackson.annotation.JsonTypeInfo;
822

23+
import org.springframework.security.jackson2.SecurityJackson2Modules;
24+
925
/**
1026
* This is a Jackson mixin class helps in serialize/deserialize
1127
* {@link org.springframework.security.ldap.userdetails.LdapUserDetailsImpl} class. To use

ldap/src/main/java/org/springframework/security/ldap/jackson2/PersonMixin.java

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
1-
package org.springframework.security.ldap.jackson2;
1+
/*
2+
* Copyright 2015-2020 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
216

3-
import org.springframework.security.jackson2.SecurityJackson2Modules;
17+
package org.springframework.security.ldap.jackson2;
418

519
import com.fasterxml.jackson.annotation.JsonAutoDetect;
620
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
721
import com.fasterxml.jackson.annotation.JsonTypeInfo;
822

23+
import org.springframework.security.jackson2.SecurityJackson2Modules;
24+
925
/**
1026
* This is a Jackson mixin class helps in serialize/deserialize
1127
* {@link org.springframework.security.ldap.userdetails.Person} class. To use this class

0 commit comments

Comments
 (0)