Fix spelling errors (#846)

Also: change checksums due to filename and content changes, and fix language snippet test output to produce correct error messages
This commit is contained in:
Josh Soref
2024-12-23 15:49:56 -05:00
committed by GitHub
parent a014e8d1d1
commit d9c65d484a
53 changed files with 153 additions and 153 deletions

View File

@@ -245,7 +245,7 @@ public final class ConfigEvaluatorBuilder {
/**
* Sets the set of URI patterns to be allowed when importing modules.
*
* <p>This is a convenieince method that delegates to the underlying evaluator builder.
* <p>This is a convenience method that delegates to the underlying evaluator builder.
*
* @throws IllegalStateException if {@link #setSecurityManager(SecurityManager)} was also called.
*/
@@ -257,7 +257,7 @@ public final class ConfigEvaluatorBuilder {
/**
* Returns the set of patterns to be allowed when importing modules.
*
* <p>This is a convenieince method that delegates to the underlying evaluator builder.
* <p>This is a convenience method that delegates to the underlying evaluator builder.
*/
public List<Pattern> getAllowedModules() {
return evaluatorBuilder.getAllowedModules();
@@ -266,7 +266,7 @@ public final class ConfigEvaluatorBuilder {
/**
* Sets the set of URI patterns to be allowed when reading resources.
*
* <p>This is a convenieince method that delegates to the underlying evaluator builder.
* <p>This is a convenience method that delegates to the underlying evaluator builder.
*
* @throws IllegalStateException if {@link #setSecurityManager(SecurityManager)} was also called.
*/
@@ -278,7 +278,7 @@ public final class ConfigEvaluatorBuilder {
/**
* Returns the set of patterns to be allowed when reading resources.
*
* <p>This is a convenieince method that delegates to the underlying evaluator builder.
* <p>This is a convenience method that delegates to the underlying evaluator builder.
*/
public List<Pattern> getAllowedResources() {
return evaluatorBuilder.getAllowedResources();
@@ -288,7 +288,7 @@ public final class ConfigEvaluatorBuilder {
* Sets the root directory, which restricts access to file-based modules and resources located
* under this directory.
*
* <p>This is a convenieince method that delegates to the underlying evaluator builder.
* <p>This is a convenience method that delegates to the underlying evaluator builder.
*/
public ConfigEvaluatorBuilder setRootDir(@Nullable Path rootDir) {
evaluatorBuilder.setRootDir(rootDir);
@@ -298,7 +298,7 @@ public final class ConfigEvaluatorBuilder {
/**
* Returns the currently set root directory, if set.
*
* <p>This is a convenieince method that delegates to the underlying evaluator builder.
* <p>This is a convenience method that delegates to the underlying evaluator builder.
*/
public @Nullable Path getRootDir() {
return evaluatorBuilder.getRootDir();

View File

@@ -41,8 +41,8 @@ public class PObjectToDataObjectTest {
EnumSet.of(Hobby.SURFING, Hobby.SWIMMING),
new Address("sesame street", 94105));
private static final PersonConstructoProperties pigeon2 =
new PersonConstructoProperties(
private static final PersonConstructorProperties pigeon2 =
new PersonConstructorProperties(
"pigeon",
40,
EnumSet.of(Hobby.SURFING, Hobby.SWIMMING),
@@ -63,7 +63,7 @@ public class PObjectToDataObjectTest {
@Test
public void ex1_constructor_properties() {
var ex1 = module.getProperty("ex1");
assertThat(mapper.map(ex1, PersonConstructoProperties.class)).isEqualTo(pigeon2);
assertThat(mapper.map(ex1, PersonConstructorProperties.class)).isEqualTo(pigeon2);
}
@Test
@@ -149,14 +149,14 @@ public class PObjectToDataObjectTest {
}
}
static class PersonConstructoProperties {
static class PersonConstructorProperties {
final String name;
final int age;
final Set<Hobby> hobbies;
final Address address;
@ConstructorProperties({"name", "age", "hobbies", "address"})
PersonConstructoProperties(String name, int age, Set<Hobby> hobbies, Address address) {
PersonConstructorProperties(String name, int age, Set<Hobby> hobbies, Address address) {
this.name = name;
this.age = age;
this.hobbies = hobbies;
@@ -166,7 +166,7 @@ public class PObjectToDataObjectTest {
@Override
public boolean equals(@Nullable Object obj) {
if (this == obj) return true;
if (!(obj instanceof PersonConstructoProperties other)) return false;
if (!(obj instanceof PersonConstructorProperties other)) return false;
return name.equals(other.name)
&& age == other.age
&& hobbies.equals(other.hobbies)