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 |
---|---|---|---|
2 | 7 | 0 | 0 |
Files
Class | Bugs |
---|---|
us.codecraft.webmagic.downloader.selenium.SeleniumDownloader | 1 |
us.codecraft.webmagic.downloader.selenium.WebDriverPool | 6 |
us.codecraft.webmagic.downloader.selenium.SeleniumDownloader
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Inconsistent synchronization of us.codecraft.webmagic.downloader.selenium.SeleniumDownloader.poolSize; locked 50% of time | MT_CORRECTNESS | IS2_INCONSISTENT_SYNC | 136 | Medium |
us.codecraft.webmagic.downloader.selenium.WebDriverPool
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in us.codecraft.webmagic.downloader.selenium.WebDriverPool.configure(): new java.io.FileReader(String) | I18N | DM_DEFAULT_ENCODING | 74 | High |
us.codecraft.webmagic.downloader.selenium.WebDriverPool.configure() may fail to clean up java.io.Reader | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION | 74 | Medium |
us.codecraft.webmagic.downloader.selenium.WebDriverPool.configure() may fail to close stream | BAD_PRACTICE | OS_OPEN_STREAM | 74 | Medium |
Write to static field us.codecraft.webmagic.downloader.selenium.WebDriverPool.sConfig from instance method us.codecraft.webmagic.downloader.selenium.WebDriverPool.configure() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 69 | High |
Write to static field us.codecraft.webmagic.downloader.selenium.WebDriverPool.sCaps from instance method us.codecraft.webmagic.downloader.selenium.WebDriverPool.configure() | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 77 | Medium |
Unread field: us.codecraft.webmagic.downloader.selenium.WebDriverPool.mAutoQuitDriver | PERFORMANCE | URF_UNREAD_FIELD | 49 | Medium |