Merge pull request #3 from islandempty/main

del[hotswap]: 删除了HotSwapUtils.java无关变量
This commit is contained in:
jaysunxiao
2021-06-19 17:17:05 +08:00
committed by GitHub
@@ -25,7 +25,7 @@ public abstract class HotSwapUtils {
private static final Logger logger = LoggerFactory.getLogger(HotSwapUtils.class);
private static String readClassName(byte[] bytes) {
ByteArrayInputStream byteArrayInputStream = null;
//ByteArrayInputStream byteArrayInputStream = null;
DataInputStream dataInputStream = null;
try {
dataInputStream = new DataInputStream(new ByteArrayInputStream(bytes));
@@ -34,7 +34,7 @@ public abstract class HotSwapUtils {
} catch (IOException e) {
throw new RuntimeException(e);
} finally {
IOUtils.closeIO(dataInputStream, byteArrayInputStream);
IOUtils.closeIO(dataInputStream);
}
}