Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
yangyuhui.807 committed Jan 26, 2024
1 parent 6e713fd commit e0c58cc
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ private void checkClassFilter(ClassLoader loader, String className, byte[] class
} catch(Exception e) {
// SmithLogger.exception(e);
}
// 获取父类名和父类加载器

String superClassName = superClass != null ? superClass.getName() : "";
classFilter.setParentClassName(superClassName);

Expand Down Expand Up @@ -682,7 +682,7 @@ private String getInterfaces(Class<?> clazz) {
}
return interfacesName;
}
/* 全量扫描 */
/* scan all class */
@Override
public void onScanAllClass() {
scanswitch = false;
Expand Down Expand Up @@ -793,11 +793,11 @@ private void sendByte(byte[] data, String transId) {
int length = data.length;
ClassUpload classUpload = new ClassUpload();
classUpload.setTransId(transId);
// TODO 第一版先不分包,看下性能

// client.write(Operate.CLASSDUMP, classUpload);
// 发送文件内容分包给服务器
// int packetSize = 1024; // 每个包的大小
// int totalPackets = (data.length + packetSize - 1) / packetSize; // 总包数

// int packetSize = 1024;
// int totalPackets = (data.length + packetSize - 1) / packetSize
//for (int i = 0; i < totalPackets; i++) {
//int offset = i * packetSize;
classUpload.setByteTotalLength(length);
Expand Down

0 comments on commit e0c58cc

Please sign in to comment.