Skip to content

Commit c94fc11

Browse files
Fix-typos
Signed-off-by: Tran Ngoc Nhan <[email protected]>
1 parent 78701f9 commit c94fc11

File tree

9 files changed

+18
-17
lines changed

9 files changed

+18
-17
lines changed

access/src/main/java/org/springframework/security/acls/AclEntryVoter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
* <tt>AclEntryVoter</tt>:
7272
* <ul>
7373
* <li>Process domain object class <code>BankAccount</code>, configuration attribute
74-
* <code>VOTE_ACL_BANK_ACCONT_READ</code>, require permission
74+
* <code>VOTE_ACL_BANK_ACCOUNT_READ</code>, require permission
7575
* <code>BasePermission.READ</code></li>
7676
* <li>Process domain object class <code>BankAccount</code>, configuration attribute
7777
* <code>VOTE_ACL_BANK_ACCOUNT_WRITE</code>, require permission list

acl/src/main/java/org/springframework/security/acls/jdbc/BasicLookupStrategy.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,11 @@
6565
* NB: This implementation does attempt to provide reasonably optimised lookups - within
6666
* the constraints of a normalised database and standard ANSI SQL features. If you are
6767
* willing to sacrifice either of these constraints (e.g. use a particular database
68-
* feature such as hierarchical queries or materalized views, or reduce normalisation) you
69-
* are likely to achieve better performance. In such situations you will need to provide
70-
* your own custom <code>LookupStrategy</code>. This class does not support subclassing,
71-
* as it is likely to change in future releases and therefore subclassing is unsupported.
68+
* feature such as hierarchical queries or materialized views, or reduce normalisation)
69+
* you are likely to achieve better performance. In such situations you will need to
70+
* provide your own custom <code>LookupStrategy</code>. This class does not support
71+
* subclassing, as it is likely to change in future releases and therefore subclassing is
72+
* unsupported.
7273
* <p>
7374
* There are two SQL queries executed, one in the <tt>lookupPrimaryKeys</tt> method and
7475
* one in <tt>lookupObjectIdentities</tt>. These are built from the same select and "order

web/src/main/java/org/springframework/security/web/authentication/switchuser/SwitchUserFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
* <p>
100100
* To configure the Switch User Processing Filter, create a bean definition for the Switch
101101
* User processing filter and add to the filterChainProxy. Note that the filter must come
102-
* <b>after</b> the <tt>FilterSecurityInteceptor</tt> in the chain, in order to apply the
102+
* <b>after</b> the <tt>FilterSecurityInterceptor</tt> in the chain, in order to apply the
103103
* correct constraints to the <tt>switchUserUrl</tt>. Example:
104104
*
105105
* <pre>

web/src/main/java/org/springframework/security/web/server/csrf/WebSessionServerCsrfTokenRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public void setHeaderName(String headerName) {
102102
* @param sessionAttributeName the new attribute name to use
103103
*/
104104
public void setSessionAttributeName(String sessionAttributeName) {
105-
Assert.hasLength(sessionAttributeName, "sessionAttributename cannot be null or empty");
105+
Assert.hasLength(sessionAttributeName, "sessionAttributeName cannot be null or empty");
106106
this.sessionAttributeName = sessionAttributeName;
107107
}
108108

web/src/main/java/org/springframework/security/web/server/header/CacheControlServerHttpHeadersWriter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ public class CacheControlServerHttpHeadersWriter implements ServerHttpHeadersWri
4949
/**
5050
* The value for cache control value
5151
*/
52-
public static final String CACHE_CONTRTOL_VALUE = "no-cache, no-store, max-age=0, must-revalidate";
52+
public static final String CACHE_CONTROL_VALUE = "no-cache, no-store, max-age=0, must-revalidate";
5353

5454
/**
5555
* The delegate to write all the cache control related headers
5656
*/
5757
private static final ServerHttpHeadersWriter CACHE_HEADERS = StaticServerHttpHeadersWriter.builder()
58-
.header(HttpHeaders.CACHE_CONTROL, CacheControlServerHttpHeadersWriter.CACHE_CONTRTOL_VALUE)
58+
.header(HttpHeaders.CACHE_CONTROL, CacheControlServerHttpHeadersWriter.CACHE_CONTROL_VALUE)
5959
.header(HttpHeaders.PRAGMA, CacheControlServerHttpHeadersWriter.PRAGMA_VALUE)
6060
.header(HttpHeaders.EXPIRES, CacheControlServerHttpHeadersWriter.EXPIRES_VALUE)
6161
.build();

web/src/main/java/org/springframework/security/web/util/ThrowableAnalyzer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ public final Throwable[] determineCauseChain(Throwable throwable) {
204204

205205
/**
206206
* Verifies that the provided throwable is a valid subclass of the provided type (or
207-
* of the type itself). If <code>expectdBaseType</code> is <code>null</code>, no check
208-
* will be performed.
207+
* of the type itself). If <code>expectedBaseType</code> is <code>null</code>, no
208+
* check will be performed.
209209
* <p>
210210
* Can be used for verification purposes in implementations of
211211
* {@link ThrowableCauseExtractor extractors}.

web/src/test/java/org/springframework/security/web/server/header/CacheControlServerHttpHeadersWriterTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void writeHeadersWhenCacheHeadersThenWritesAllCacheControl() {
4444
this.writer.writeHttpHeaders(this.exchange);
4545
assertThat(this.headers.headerNames()).hasSize(3);
4646
assertThat(this.headers.get(HttpHeaders.CACHE_CONTROL))
47-
.containsOnly(CacheControlServerHttpHeadersWriter.CACHE_CONTRTOL_VALUE);
47+
.containsOnly(CacheControlServerHttpHeadersWriter.CACHE_CONTROL_VALUE);
4848
assertThat(this.headers.get(HttpHeaders.EXPIRES))
4949
.containsOnly(CacheControlServerHttpHeadersWriter.EXPIRES_VALUE);
5050
assertThat(this.headers.get(HttpHeaders.PRAGMA)).containsOnly(CacheControlServerHttpHeadersWriter.PRAGMA_VALUE);

web/src/test/java/org/springframework/security/web/server/header/StaticServerHttpHeadersWriterTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public void writeHeadersWhenHeaderWrittenWithDifferentCaseThenDoesNotWriteHeader
6969
// due to the fact that gh-10557 reports NettyHeadersAdapter as the
7070
// response headers implementation, which is not accessible here.
7171
HttpHeaders caseSensitiveHeaders = new HttpHeaders(new LinkedMultiValueMap<>());
72-
caseSensitiveHeaders.set(HttpHeaders.CACHE_CONTROL, CacheControlServerHttpHeadersWriter.CACHE_CONTRTOL_VALUE);
72+
caseSensitiveHeaders.set(HttpHeaders.CACHE_CONTROL, CacheControlServerHttpHeadersWriter.CACHE_CONTROL_VALUE);
7373
caseSensitiveHeaders.set(HttpHeaders.PRAGMA, CacheControlServerHttpHeadersWriter.PRAGMA_VALUE);
7474
caseSensitiveHeaders.set(HttpHeaders.EXPIRES, CacheControlServerHttpHeadersWriter.EXPIRES_VALUE);
7575
this.writer = new StaticServerHttpHeadersWriter(caseSensitiveHeaders);
@@ -80,13 +80,13 @@ public void writeHeadersWhenHeaderWrittenWithDifferentCaseThenDoesNotWriteHeader
8080
@Test
8181
public void writeHeadersWhenMultiHeaderThenWritesAllHeaders() {
8282
this.writer = StaticServerHttpHeadersWriter.builder()
83-
.header(HttpHeaders.CACHE_CONTROL, CacheControlServerHttpHeadersWriter.CACHE_CONTRTOL_VALUE)
83+
.header(HttpHeaders.CACHE_CONTROL, CacheControlServerHttpHeadersWriter.CACHE_CONTROL_VALUE)
8484
.header(HttpHeaders.PRAGMA, CacheControlServerHttpHeadersWriter.PRAGMA_VALUE)
8585
.header(HttpHeaders.EXPIRES, CacheControlServerHttpHeadersWriter.EXPIRES_VALUE)
8686
.build();
8787
this.writer.writeHttpHeaders(this.exchange);
8888
assertThat(this.headers.get(HttpHeaders.CACHE_CONTROL))
89-
.containsOnly(CacheControlServerHttpHeadersWriter.CACHE_CONTRTOL_VALUE);
89+
.containsOnly(CacheControlServerHttpHeadersWriter.CACHE_CONTROL_VALUE);
9090
assertThat(this.headers.get(HttpHeaders.PRAGMA)).containsOnly(CacheControlServerHttpHeadersWriter.PRAGMA_VALUE);
9191
assertThat(this.headers.get(HttpHeaders.EXPIRES))
9292
.containsOnly(CacheControlServerHttpHeadersWriter.EXPIRES_VALUE);
@@ -97,7 +97,7 @@ public void writeHeadersWhenMultiHeaderAndSingleWrittenThenNoHeadersOverridden()
9797
String headerValue = "other";
9898
this.headers.set(HttpHeaders.CACHE_CONTROL, headerValue);
9999
this.writer = StaticServerHttpHeadersWriter.builder()
100-
.header(HttpHeaders.CACHE_CONTROL, CacheControlServerHttpHeadersWriter.CACHE_CONTRTOL_VALUE)
100+
.header(HttpHeaders.CACHE_CONTROL, CacheControlServerHttpHeadersWriter.CACHE_CONTROL_VALUE)
101101
.header(HttpHeaders.PRAGMA, CacheControlServerHttpHeadersWriter.PRAGMA_VALUE)
102102
.header(HttpHeaders.EXPIRES, CacheControlServerHttpHeadersWriter.EXPIRES_VALUE)
103103
.build();

web/src/test/java/org/springframework/security/web/server/header/XXssProtectionServerHttpHeadersWriterTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public void writeHeadersWhenNoHeadersThenWriteHeaders() {
5252
}
5353

5454
@Test
55-
public void writeHeadersWhenHeaderWrittenThenDoesNotOverrride() {
55+
public void writeHeadersWhenHeaderWrittenThenDoesNotOverride() {
5656
String headerValue = "value";
5757
this.headers.set(XXssProtectionServerHttpHeadersWriter.X_XSS_PROTECTION, headerValue);
5858
this.writer.writeHttpHeaders(this.exchange);

0 commit comments

Comments
 (0)