mirror of
https://github.com/apple/pkl.git
synced 2026-04-11 03:06:55 +02:00
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:
@@ -170,7 +170,7 @@ public interface Evaluator extends AutoCloseable {
|
||||
String evaluateExpressionString(ModuleSource moduleSource, String expression);
|
||||
|
||||
/**
|
||||
* Evalautes the module's schema, which describes the properties, methods, and classes of a
|
||||
* Evaluates the module's schema, which describes the properties, methods, and classes of a
|
||||
* module.
|
||||
*
|
||||
* @throws PklException if an error occurs during evaluation
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
package org.pkl.core;
|
||||
|
||||
/**
|
||||
* Indicates that a non-existent property was requested for a {@link Composite}. To check if a
|
||||
* Indicates that a nonexistent property was requested for a {@link Composite}. To check if a
|
||||
* property exists, use {@link Composite#hasProperty(String)}.
|
||||
*/
|
||||
public final class NoSuchPropertyException extends RuntimeException {
|
||||
|
||||
@@ -106,7 +106,7 @@ public final class ClassNode extends ExpressionNode {
|
||||
new VmTyped(
|
||||
frame.materialize(),
|
||||
null, // initialized later by VmClass
|
||||
null, // initialized later by Vmclass
|
||||
null, // initialized later by VmClass
|
||||
prototypeMembers);
|
||||
}
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ public abstract class TypeNode extends PklNode {
|
||||
}
|
||||
|
||||
/**
|
||||
* Visit child type nodes; but not paramaterized types (does not visit {@code String} in {@code
|
||||
* Visit child type nodes; but not parameterized types (does not visit {@code String} in {@code
|
||||
* Listing<String>}).
|
||||
*/
|
||||
protected abstract boolean acceptTypeNode(TypeNodeConsumer consumer);
|
||||
|
||||
@@ -534,7 +534,7 @@ public final class ModuleKeys {
|
||||
conn.connect();
|
||||
if (conn instanceof JarURLConnection && IoUtils.isWindows()) {
|
||||
// On Windows, opening a JarURLConnection prevents the jar file from being deleted, unless
|
||||
// cacheing is disabled.
|
||||
// caching is disabled.
|
||||
// See https://bugs.openjdk.org/browse/JDK-8239054
|
||||
conn.setUseCaches(false);
|
||||
}
|
||||
|
||||
@@ -333,7 +333,7 @@ final class PackageResolvers {
|
||||
throw fileIsADirectory();
|
||||
}
|
||||
var entries = cachedEntries.get(packageUri);
|
||||
// need to normalize here but not in `doListElments` nor `doHasElement` because
|
||||
// need to normalize here but not in `doListElements` nor `doHasElement` because
|
||||
// `TreePathElement.getElement` does normalization already.
|
||||
var path = IoUtils.toNormalizedPathString(Path.of(uri.getAssetPath()).normalize());
|
||||
return entries.get(path).array();
|
||||
|
||||
@@ -434,7 +434,7 @@ public final class GlobResolver {
|
||||
}
|
||||
}
|
||||
|
||||
/** Split a glob pattern into the base, non-wildard parts, and the wildcard parts. */
|
||||
/** Split a glob pattern into the base, non-wildcard parts, and the wildcard parts. */
|
||||
private static Pair<String, String[]> splitGlobPatternIntoBaseAndWildcards(
|
||||
ReaderBase reader, String globPattern, boolean hasAbsoluteGlob) {
|
||||
var effectiveGlobPattern = globPattern;
|
||||
|
||||
@@ -483,8 +483,8 @@ public final class IoUtils {
|
||||
start++;
|
||||
}
|
||||
var uriPartsRemaining = uriParts.subList(start, uriParts.size());
|
||||
var basePartsRemainig = baseParts.subList(start, baseParts.size());
|
||||
if (basePartsRemainig.isEmpty()) {
|
||||
var basePartsRemaining = baseParts.subList(start, baseParts.size());
|
||||
if (basePartsRemaining.isEmpty()) {
|
||||
return new URI(
|
||||
null,
|
||||
null,
|
||||
@@ -495,7 +495,7 @@ public final class IoUtils {
|
||||
uri.getFragment());
|
||||
}
|
||||
var resultingPath =
|
||||
"../".repeat(basePartsRemainig.size()) + String.join("/", uriPartsRemaining);
|
||||
"../".repeat(basePartsRemaining.size()) + String.join("/", uriPartsRemaining);
|
||||
return new URI(null, null, null, -1, resultingPath, uri.getQuery(), uri.getFragment());
|
||||
} catch (URISyntaxException e) {
|
||||
// Impossible; started from a valid URI to begin with.
|
||||
@@ -716,7 +716,7 @@ public final class IoUtils {
|
||||
* URI#resolve(URI)}
|
||||
*/
|
||||
public static URI fixTripleSlashUri(URI baseUri, URI newUri) {
|
||||
// `getHost()` is erroroneously `null` when parsing triple-slash URIs.
|
||||
// `getHost()` is erroneously `null` when parsing triple-slash URIs.
|
||||
// Ensure that they are preserved during resolution.
|
||||
if (baseUri.getScheme() != null
|
||||
&& baseUri.getScheme().equalsIgnoreCase(newUri.getScheme())
|
||||
|
||||
@@ -32,7 +32,7 @@ import org.pkl.core.util.Nullable;
|
||||
/**
|
||||
* Parser for JSON.
|
||||
*
|
||||
* <p>JSON types are paresd into the following Java types:
|
||||
* <p>JSON types are parsed into the following Java types:
|
||||
*
|
||||
* <table>
|
||||
* <thead>
|
||||
|
||||
@@ -675,7 +675,7 @@ invalidGlobInvalidCharacterInCharacterClass=\
|
||||
The character `{0}` is not valid in a character class.
|
||||
|
||||
invalidGlobExtGlob=\
|
||||
Extebded globbing features are not supported.
|
||||
Extended globbing features are not supported.
|
||||
|
||||
invalidGlobNestedSubpattern=\
|
||||
Sub-patterns cannot be nested. To fix, remove or escape the inner `{` character.
|
||||
@@ -750,7 +750,7 @@ Failed to resolve type required for rendering protobuf.\n\
|
||||
Consider adding a type annotation.
|
||||
|
||||
cannotRenderSubtypeForProtobuf=\
|
||||
Can not render subtype {0} of specified type {1} in protobuf.
|
||||
Cannot render subtype {0} of specified type {1} in protobuf.
|
||||
|
||||
cannotExportValue=\
|
||||
A value of type `{0}` cannot be exported.
|
||||
@@ -1079,7 +1079,7 @@ Certificates can only be loaded from `jar:` or `file:` URLs, but got:\n\
|
||||
|
||||
cannotFindBuiltInCertificates=\
|
||||
Cannot find Pkl's trusted CA certificates on the class path.\n\
|
||||
To fix this problem, add dependendy `org.pkl:pkl-certs`.
|
||||
To fix this problem, add dependency `org.pkl:pkl-certs`.
|
||||
|
||||
# suppress inspection "HttpUrlsUsage"
|
||||
malformedProxyAddress=\
|
||||
|
||||
Reference in New Issue
Block a user