SpotBugs Bug Detector Report
The following document contains the results of SpotBugs
SpotBugs Version is 4.8.5
Threshold is medium
Effort is default
Summary
Classes | Bugs | Errors | Missing Classes |
---|---|---|---|
17 | 4 | 0 | 0 |
Files
Class | Bugs |
---|---|
us.codecraft.webmagic.scripts.Params | 3 |
us.codecraft.webmagic.scripts.ScriptProcessor | 1 |
us.codecraft.webmagic.scripts.Params
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
us.codecraft.webmagic.scripts.Params.getUrls() may expose internal representation by returning Params.urls | MALICIOUS_CODE | EI_EXPOSE_REP | 22 | Medium |
us.codecraft.webmagic.scripts.Params.setUrls(List) may expose internal representation by storing an externally mutable object into Params.urls | MALICIOUS_CODE | EI_EXPOSE_REP2 | 22 | Medium |
Write to static field us.codecraft.webmagic.scripts.Params.alias from instance method new us.codecraft.webmagic.scripts.Params() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 34 | High |
us.codecraft.webmagic.scripts.ScriptProcessor
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Exception thrown in class us.codecraft.webmagic.scripts.ScriptProcessor at new us.codecraft.webmagic.scripts.ScriptProcessor(Language, String, int) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. | BAD_PRACTICE | CT_CONSTRUCTOR_THROW | 34 | Medium |