Commit ae3bdc79 authored by Andy Wilkinson's avatar Andy Wilkinson

Merge pull request #19850 from dreis2211

* gh-19850:
  Treat Java 11+'s NoSuchFileException the same as FileNotFoundException

Closes gh-19850
parents adc64442 23e87f82
...@@ -19,6 +19,7 @@ package org.springframework.boot.layertools; ...@@ -19,6 +19,7 @@ package org.springframework.boot.layertools;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;
import java.io.IOException; import java.io.IOException;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
import java.nio.file.NoSuchFileException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Iterator; import java.util.Iterator;
...@@ -91,7 +92,7 @@ class IndexedLayers implements Layers { ...@@ -91,7 +92,7 @@ class IndexedLayers implements Layers {
} }
return null; return null;
} }
catch (FileNotFoundException ex) { catch (FileNotFoundException | NoSuchFileException ex) {
return null; return null;
} }
catch (IOException ex) { catch (IOException ex) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment