Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
webmagic
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
沈俊林
webmagic
Commits
9903f036
Commit
9903f036
authored
May 29, 2017
by
Yihua Huang
Committed by
GitHub
May 29, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #570 from SoulZhong/master
修复formatter初始化未传参bug
parents
ec7c5210
bc828e13
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
PageModelExtractor.java
.../java/us/codecraft/webmagic/model/PageModelExtractor.java
+5
-1
No files found.
webmagic-extension/src/main/java/us/codecraft/webmagic/model/PageModelExtractor.java
View file @
9903f036
...
@@ -115,7 +115,11 @@ class PageModelExtractor {
...
@@ -115,7 +115,11 @@ class PageModelExtractor {
}
}
private
ObjectFormatter
getObjectFormatter
(
Field
field
,
Class
<?>
fieldClazz
,
Formatter
formatter
)
{
private
ObjectFormatter
getObjectFormatter
(
Field
field
,
Class
<?>
fieldClazz
,
Formatter
formatter
)
{
return
initFormatter
(
ObjectFormatters
.
get
(
fieldClazz
));
ObjectFormatter
objectFormatter
=
initFormatter
(
ObjectFormatters
.
get
(
fieldClazz
));
if
(
formatter
!=
null
&&
formatter
.
value
()
!=
null
){
objectFormatter
.
initParam
(
formatter
.
value
());
}
return
objectFormatter
;
}
}
private
ObjectFormatter
initFormatter
(
Class
<?
extends
ObjectFormatter
>
formatterClazz
)
{
private
ObjectFormatter
initFormatter
(
Class
<?
extends
ObjectFormatter
>
formatterClazz
)
{
...
...
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