Polishing

- primarily automated "clean up" using Eclipse IDE
This commit is contained in:
Sam Brannen
2022-12-09 00:53:54 -05:00
parent 52af5c2b38
commit 69f47e7700
12 changed files with 18 additions and 21 deletions

View File

@@ -117,8 +117,7 @@ public abstract class AbstractFileResolvingResource extends AbstractResource {
return false;
}
}
else if (con instanceof JarURLConnection) {
JarURLConnection jarCon = (JarURLConnection) con;
else if (con instanceof JarURLConnection jarCon) {
JarEntry jarEntry = jarCon.getJarEntry();
if (jarEntry == null) {
return false;

View File

@@ -417,7 +417,7 @@ public interface DataBuffer {
*/
default InputStream asInputStream(boolean releaseOnClose) {
return new DataBufferInputStream(this, releaseOnClose);
};
}
/**
* Expose this buffer's data as an {@link OutputStream}. Both data and write position are