Skip to content

Commit 5012843

Browse files
laterlaughsbrannen
authored andcommitted
Fix typos in comment and test
Closes gh-32628
1 parent b13963e commit 5012843

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spring-core/src/test/java/org/springframework/core/annotation/PackagesAnnotationFilterTests.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.
@@ -58,7 +58,7 @@ void matchesWhenInPackageReturnsTrue() {
5858
@Test
5959
void matchesWhenNotInPackageReturnsFalse() {
6060
PackagesAnnotationFilter filter = new PackagesAnnotationFilter("com.example");
61-
assertThat(filter.matches("org.springframework.sterotype.Component")).isFalse();
61+
assertThat(filter.matches("org.springframework.stereotype.Component")).isFalse();
6262
}
6363

6464
@Test

spring-core/src/test/java/org/springframework/core/io/support/PathMatchingResourcePatternResolverTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ private String getPath(Resource resource) {
332332
// Tests fail if we use resource.getURL().getPath(). They would also fail on macOS when
333333
// using resource.getURI().getPath() if the resource paths are not Unicode normalized.
334334
//
335-
// On the JVM, all tests should pass when using resouce.getFile().getPath(); however,
335+
// On the JVM, all tests should pass when using resource.getFile().getPath(); however,
336336
// we use FileSystemResource#getPath since this test class is sometimes run within a
337337
// GraalVM native image which cannot support Path#toFile.
338338
//

0 commit comments

Comments
 (0)