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
b1fa5c26
Commit
b1fa5c26
authored
Mar 20, 2019
by
swift_gan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[HookWrapper]tweak logic of search backup
parent
4cb97b59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
SkipParamCheck.java
...in/java/com/swift/sandhook/annotation/SkipParamCheck.java
+1
-1
HookWrapper.java
...src/main/java/com/swift/sandhook/wrapper/HookWrapper.java
+5
-1
No files found.
annotation/src/main/java/com/swift/sandhook/annotation/SkipParamCheck.java
View file @
b1fa5c26
...
...
@@ -5,7 +5,7 @@ import java.lang.annotation.Retention;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
@Target
({
ElementType
.
METHOD
})
@Target
({
ElementType
.
METHOD
,
ElementType
.
FIELD
})
@Retention
(
RetentionPolicy
.
RUNTIME
)
public
@interface
SkipParamCheck
{
}
hooklib/src/main/java/com/swift/sandhook/wrapper/HookWrapper.java
View file @
b1fa5c26
...
...
@@ -317,8 +317,12 @@ public class HookWrapper {
private
static
boolean
samePars
(
ClassLoader
classLoader
,
Field
field
,
Class
[]
par
)
{
try
{
Class
[]
parsOnField
=
parseMethodPars
(
classLoader
,
field
);
if
(
par
==
null
)
if
(
par
==
null
)
{
if
(
field
.
isAnnotationPresent
(
SkipParamCheck
.
class
))
{
return
true
;
}
par
=
new
Class
[
0
];
}
if
(
parsOnField
==
null
)
parsOnField
=
new
Class
[
0
];
if
(
par
.
length
!=
parsOnField
.
length
)
...
...
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