Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
SandHook
Project
Project
Details
Activity
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
Administrator
SandHook
Commits
4659bc6e
Commit
4659bc6e
authored
Jan 25, 2019
by
swift_gan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove useless logic
parent
a94258bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
SandHook.java
hooklib/src/main/java/com/swift/sandhook/SandHook.java
+3
-8
No files found.
hooklib/src/main/java/com/swift/sandhook/SandHook.java
View file @
4659bc6e
...
...
@@ -68,14 +68,9 @@ public class SandHook {
private
static
void
resolveStaticMethod
(
Member
method
)
{
//ignore result, just call to trigger resolve
try
{
if
(
method
instanceof
Method
)
{
if
(
Modifier
.
isStatic
(
method
.
getModifiers
()))
{
((
Method
)
method
).
setAccessible
(
true
);
((
Method
)
method
).
invoke
(
new
Object
());
}
}
else
if
(
method
instanceof
Constructor
){
((
Constructor
)
method
).
setAccessible
(
true
);
((
Constructor
)
method
).
newInstance
(
null
);
if
(
method
instanceof
Method
&&
Modifier
.
isStatic
(
method
.
getModifiers
()))
{
((
Method
)
method
).
setAccessible
(
true
);
((
Method
)
method
).
invoke
(
new
Object
());
}
}
catch
(
Exception
e
)
{
}
...
...
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