Skip to content

Commit c668473

Browse files
committed
Polishing
1 parent 38595c6 commit c668473

File tree

5 files changed

+19
-10
lines changed

5 files changed

+19
-10
lines changed

spring-context/src/main/java/org/springframework/context/SmartLifecycle.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -121,7 +121,7 @@ default void stop(Runnable callback) {
121121
/**
122122
* Return the phase that this lifecycle object is supposed to run in.
123123
* <p>The default implementation returns {@link #DEFAULT_PHASE} in order to
124-
* let {@code stop()} callbacks execute after regular {@code Lifecycle}
124+
* let {@code stop()} callbacks execute before regular {@code Lifecycle}
125125
* implementations.
126126
* @see #isAutoStartup()
127127
* @see #start()

spring-orm/src/main/java/org/springframework/orm/jpa/persistenceunit/PersistenceManagedTypesScanner.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -73,11 +73,16 @@ public final class PersistenceManagedTypesScanner {
7373
private final CandidateComponentsIndex componentsIndex;
7474

7575

76+
/**
77+
* Create a new {@code PersistenceManagedTypesScanner} for the given resource loader.
78+
* @param resourceLoader the {@code ResourceLoader} to use
79+
*/
7680
public PersistenceManagedTypesScanner(ResourceLoader resourceLoader) {
7781
this.resourcePatternResolver = ResourcePatternUtils.getResourcePatternResolver(resourceLoader);
7882
this.componentsIndex = CandidateComponentsIndexLoader.loadIndex(resourceLoader.getClassLoader());
7983
}
8084

85+
8186
/**
8287
* Scan the specified packages and return a {@link PersistenceManagedTypes} that
8388
* represents the result of the scanning.

spring-tx/src/main/java/org/springframework/transaction/reactive/TransactionContext.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2021 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -36,18 +36,21 @@
3636
*/
3737
public class TransactionContext {
3838

39-
private final @Nullable TransactionContext parent;
39+
@Nullable
40+
private final TransactionContext parent;
4041

4142
private final Map<Object, Object> resources = new LinkedHashMap<>();
4243

4344
@Nullable
4445
private Set<TransactionSynchronization> synchronizations;
4546

46-
private volatile @Nullable String currentTransactionName;
47+
@Nullable
48+
private volatile String currentTransactionName;
4749

4850
private volatile boolean currentTransactionReadOnly;
4951

50-
private volatile @Nullable Integer currentTransactionIsolationLevel;
52+
@Nullable
53+
private volatile Integer currentTransactionIsolationLevel;
5154

5255
private volatile boolean actualTransactionActive;
5356

spring-web/src/main/java/org/springframework/http/server/reactive/ChannelSendOperator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -39,7 +39,7 @@
3939
* to defer the invocation of the write function, until we know if the source
4040
* publisher will begin publishing without an error. If the first emission is
4141
* an error, the write function is bypassed, and the error is sent directly
42-
* through the result publisher. Otherwise the write function is invoked.
42+
* through the result publisher. Otherwise, the write function is invoked.
4343
*
4444
* @author Rossen Stoyanchev
4545
* @author Stephane Maldini

spring-webmvc/src/main/java/org/springframework/web/servlet/handler/AbstractHandlerMethodMapping.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -565,6 +565,7 @@ protected Set<String> getDirectPaths(T mapping) {
565565
/**
566566
* A registry that maintains all mappings to handler methods, exposing methods
567567
* to perform lookups and providing concurrent access.
568+
*
568569
* <p>Package-private for testing purposes.
569570
*/
570571
class MappingRegistry {

0 commit comments

Comments
 (0)