Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Spencer Chang
dp
Commits
c3db8cf6
Commit
c3db8cf6
authored
Aug 11, 2020
by
Spencer Chang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove dead code
parent
45111d09
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
87 deletions
+1
-87
README.md
README.md
+1
-1
IPUtils.java
v1-基础版本/java-code/dp/util/IPUtils.java
+0
-43
IPUtils.java
v2-多线程版本/java-code/dp/util/IPUtils.java
+0
-43
No files found.
README.md
View file @
c3db8cf6
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
禁止修改系统级别或业务系统基础数据
*
禁止修改系统级别或业务系统基础数据
*
DDL操作限制在内网环境使用
*
DDL操作限制在内网环境使用
## v1-基础版本
## v1-基础版本
(不建议使用)
### 直接判断sql语句关键字,校验sql有效性。
### 直接判断sql语句关键字,校验sql有效性。
### 只支持单条语句执行并不需要结束符号。
### 只支持单条语句执行并不需要结束符号。
...
...
v1-基础版本/java-code/dp/util/IPUtils.java
View file @
c3db8cf6
...
@@ -93,47 +93,4 @@ public class IPUtils {
...
@@ -93,47 +93,4 @@ public class IPUtils {
}
}
return
retVal
.
toString
();
return
retVal
.
toString
();
}
}
// private static final String inet6AddressToAscii(byte[] address) {
// int longestRunOffset = -1;
// int longestRunLength = 0;
// boolean var3 = false;
// boolean var4 = false;
// int var5 = false;
//
// for(int i = 0; i < address.length; i += 2) {
// int currentRunOffset;
// for(currentRunOffset = i; i < 16 && address[i] == 0 && address[i + 1] == 0; i += 2) {
// }
//
// int currentRunLength = i - currentRunOffset;
// if (currentRunLength > longestRunLength && currentRunLength >= 4) {
// longestRunOffset = currentRunOffset;
// longestRunLength = currentRunLength;
// }
// }
//
// Buffer result = new Buffer();
// int i = 0;
//
// while(i < address.length) {
// if (i == longestRunOffset) {
// result.writeByte(58);
// i += longestRunLength;
// if (i == 16) {
// result.writeByte(58);
// }
// } else {
// if (i > 0) {
// result.writeByte(58);
// }
//
// int group = Util.and(address[i], 255) << 8 | Util.and(address[i + 1], 255);
// result.writeHexadecimalUnsignedLong((long)group);
// i += 2;
// }
// }
//
// return result.readUtf8();
// }
}
}
v2-多线程版本/java-code/dp/util/IPUtils.java
View file @
c3db8cf6
...
@@ -96,47 +96,4 @@ public class IPUtils {
...
@@ -96,47 +96,4 @@ public class IPUtils {
}
}
return
retVal
.
toString
();
return
retVal
.
toString
();
}
}
// private static final String inet6AddressToAscii(byte[] address) {
// int longestRunOffset = -1;
// int longestRunLength = 0;
// boolean var3 = false;
// boolean var4 = false;
// int var5 = false;
//
// for(int i = 0; i < address.length; i += 2) {
// int currentRunOffset;
// for(currentRunOffset = i; i < 16 && address[i] == 0 && address[i + 1] == 0; i += 2) {
// }
//
// int currentRunLength = i - currentRunOffset;
// if (currentRunLength > longestRunLength && currentRunLength >= 4) {
// longestRunOffset = currentRunOffset;
// longestRunLength = currentRunLength;
// }
// }
//
// Buffer result = new Buffer();
// int i = 0;
//
// while(i < address.length) {
// if (i == longestRunOffset) {
// result.writeByte(58);
// i += longestRunLength;
// if (i == 16) {
// result.writeByte(58);
// }
// } else {
// if (i > 0) {
// result.writeByte(58);
// }
//
// int group = Util.and(address[i], 255) << 8 | Util.and(address[i + 1], 255);
// result.writeHexadecimalUnsignedLong((long)group);
// i += 2;
// }
// }
//
// return result.readUtf8();
// }
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment