Skip to content

Commit dded5ff

Browse files
committed
minor formatting cleanup
1 parent b5428e4 commit dded5ff

56 files changed

Lines changed: 95 additions & 102 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

m1-lesson3-start/common/src/main/java/com/baeldung/common/web/RestPreconditions.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
import com.baeldung.common.web.exception.MyResourceNotFoundException;
88

99
/**
10-
* Simple static methods to be called at the start of your own methods to verify
11-
* correct arguments and state. If the Precondition fails, an {@link HttpStatus}
12-
* code is thrown
10+
* Simple static methods to be called at the start of your own methods to verify correct arguments and state. If the Precondition fails, an {@link HttpStatus} code is thrown
1311
*/
1412
public final class RestPreconditions {
1513

@@ -55,8 +53,7 @@ public static <T> T checkNotNull(final T reference, final String message) {
5553
}
5654

5755
/**
58-
* Ensures that an object reference passed as a parameter to the calling
59-
* method is not null.
56+
* Ensures that an object reference passed as a parameter to the calling method is not null.
6057
*
6158
* @param reference
6259
* an object reference

m1-lesson3-start/common/src/main/java/com/baeldung/common/web/controller/AbstractReadOnlyController.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ protected final long countInternal() {
8484

8585
/**
8686
* Counts all {@link Privilege} resources in the system
87+
*
8788
* @return
8889
*/
8990
@RequestMapping(method = RequestMethod.GET, value = "/count")

m1-lesson3-start/um-webapp/src/main/java/com/baeldung/um/persistence/model/User.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ public class User implements INameableEntity, INameableDto {
2424
@GeneratedValue(strategy = GenerationType.AUTO)
2525
@Column(name = "USER_ID")
2626
private Long id;
27-
27+
2828
@Column(unique = true, nullable = false)
2929
private String name;
30-
30+
3131
@Column(nullable = false)
3232
private String password;
33-
33+
3434
@Column( /* nullable = false */)
3535
private Boolean locked;
3636

m1-lesson3-start/um-webapp/src/main/java/com/baeldung/um/persistence/setup/MyApplicationContextInitializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public MyApplicationContextInitializer() {
2222
public void initialize(final ConfigurableApplicationContext applicationContext) {
2323
final ConfigurableEnvironment environment = applicationContext.getEnvironment();
2424
final String activeProfiles = environment.getProperty("spring.profiles.active");
25-
25+
2626
logger.info("The active profiles are: {}", activeProfiles);
2727

2828
if (activeProfiles != null) {

m1-lesson3-start/um-webapp/src/main/java/com/baeldung/um/spring/UmContextConfig.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import org.springframework.context.annotation.Configuration;
55
import org.springframework.context.annotation.EnableAspectJAutoProxy;
66
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
7+
78
@Configuration
89
@EnableAspectJAutoProxy(proxyTargetClass = true)
910
public class UmContextConfig {

m1-lesson3-start/um-webapp/src/main/java/com/baeldung/um/util/UmMappings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public final class UmMappings {
88

99
// discoverability
1010

11-
public static final class Singural {
11+
public static final class Singular {
1212

1313
public static final String USER = "user";
1414
public static final String PRIVILEGE = "privilege";

m1-lesson3-start/um-webapp/src/main/java/com/baeldung/um/web/controller/RedirectController.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ public RedirectController() {
2121

2222
// API
2323

24-
@RequestMapping(value = UmMappings.Singural.PRIVILEGE)
24+
@RequestMapping(value = UmMappings.Singular.PRIVILEGE)
2525
public ResponseEntity<Void> privilegeToPrivileges(final HttpServletRequest request) {
2626
return singularToPlural(request);
2727
}
2828

29-
@RequestMapping(value = UmMappings.Singural.ROLE)
29+
@RequestMapping(value = UmMappings.Singular.ROLE)
3030
public ResponseEntity<Void> roleToRoles(final HttpServletRequest request) {
3131
return singularToPlural(request);
3232
}
3333

34-
@RequestMapping(value = UmMappings.Singural.USER)
34+
@RequestMapping(value = UmMappings.Singular.USER)
3535
public ResponseEntity<Void> userToUsers(final HttpServletRequest request) {
3636
return singularToPlural(request);
3737
}

m1-lesson4-start/common/src/main/java/com/baeldung/common/web/RestPreconditions.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
import com.baeldung.common.web.exception.MyResourceNotFoundException;
88

99
/**
10-
* Simple static methods to be called at the start of your own methods to verify
11-
* correct arguments and state. If the Precondition fails, an {@link HttpStatus}
12-
* code is thrown
10+
* Simple static methods to be called at the start of your own methods to verify correct arguments and state. If the Precondition fails, an {@link HttpStatus} code is thrown
1311
*/
1412
public final class RestPreconditions {
1513

@@ -55,8 +53,7 @@ public static <T> T checkNotNull(final T reference, final String message) {
5553
}
5654

5755
/**
58-
* Ensures that an object reference passed as a parameter to the calling
59-
* method is not null.
56+
* Ensures that an object reference passed as a parameter to the calling method is not null.
6057
*
6158
* @param reference
6259
* an object reference

m1-lesson4-start/common/src/main/java/com/baeldung/common/web/controller/AbstractReadOnlyController.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ protected final long countInternal() {
8484

8585
/**
8686
* Counts all {@link Privilege} resources in the system
87+
*
8788
* @return
8889
*/
8990
@RequestMapping(method = RequestMethod.GET, value = "/count")

m1-lesson4-start/um-webapp/src/main/java/com/baeldung/um/persistence/model/User.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ public class User implements INameableEntity, INameableDto {
2424
@GeneratedValue(strategy = GenerationType.AUTO)
2525
@Column(name = "USER_ID")
2626
private Long id;
27-
27+
2828
@Column(unique = true, nullable = false)
2929
private String name;
30-
30+
3131
@Column(nullable = false)
3232
private String password;
33-
33+
3434
@Column( /* nullable = false */)
3535
private Boolean locked;
3636

0 commit comments

Comments
 (0)