SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.2.3

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 128 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 72 High
us.codecraft.webmagic.downloader.selenium.WebDriverPool.configure() may fail to clean up java.io.Reader EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION 72 Medium
us.codecraft.webmagic.downloader.selenium.WebDriverPool.configure() may fail to close stream BAD_PRACTICE OS_OPEN_STREAM 72 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 67 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 75 Medium
Unread field: us.codecraft.webmagic.downloader.selenium.WebDriverPool.mAutoQuitDriver PERFORMANCE URF_UNREAD_FIELD 47 Medium