Merge pull request #19850 from dreis2211
* gh-19850: Treat Java 11+'s NoSuchFileException the same as FileNotFoundException Closes gh-19850
This commit is contained in:
commit
ae3bdc79f3
|
|
@ -19,6 +19,7 @@ package org.springframework.boot.layertools;
|
|||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.nio.file.NoSuchFileException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Iterator;
|
||||
|
|
@ -91,7 +92,7 @@ class IndexedLayers implements Layers {
|
|||
}
|
||||
return null;
|
||||
}
|
||||
catch (FileNotFoundException ex) {
|
||||
catch (FileNotFoundException | NoSuchFileException ex) {
|
||||
return null;
|
||||
}
|
||||
catch (IOException ex) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue