Merge branch '2.6.x' into 2.7.x
Closes gh-31865
This commit is contained in:
@@ -375,8 +375,8 @@ public abstract class AbstractJarWriter implements LoaderClassesWriter {
|
||||
}
|
||||
|
||||
/**
|
||||
* An {@code UnpackHandler} determines whether or not unpacking is required and
|
||||
* provides a SHA1 hash if required.
|
||||
* An {@code UnpackHandler} determines whether unpacking is required and provides a
|
||||
* SHA-1 hash if required.
|
||||
*/
|
||||
interface UnpackHandler {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -32,9 +32,9 @@ final class Digest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the SHA1 digest from the supplied stream.
|
||||
* Return the SHA-1 digest from the supplied stream.
|
||||
* @param supplier the stream supplier
|
||||
* @return the SHA1 digest
|
||||
* @return the SHA-1 digest
|
||||
* @throws IOException on IO error
|
||||
*/
|
||||
static String sha1(InputStreamSupplier supplier) throws IOException {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -52,7 +52,7 @@ public abstract class FileUtils {
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate a SHA.1 Hash for a given file.
|
||||
* Generate a SHA-1 Hash for a given file.
|
||||
* @param file the file to hash
|
||||
* @return the hash value as a String
|
||||
* @throws IOException if the file cannot be read
|
||||
|
||||
@@ -163,8 +163,8 @@ public abstract class Packager {
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the {@link File} to use to backup the original source.
|
||||
* @param backupFile the file to use to backup the original source
|
||||
* Sets the {@link File} to use to back up the original source.
|
||||
* @param backupFile the file to use to back up the original source
|
||||
*/
|
||||
protected void setBackupFile(File backupFile) {
|
||||
this.backupFile = backupFile;
|
||||
@@ -320,8 +320,8 @@ public abstract class Packager {
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the {@link File} to use to backup the original source.
|
||||
* @return the file to use to backup the original source
|
||||
* Return the {@link File} to use to back up the original source.
|
||||
* @return the file to use to back up the original source
|
||||
*/
|
||||
public final File getBackupFile() {
|
||||
if (this.backupFile != null) {
|
||||
|
||||
Reference in New Issue
Block a user