When UserAgentDetector.parseUserAgent() with null or short header, it returns an empty result which has default value.
IMHO, this value could be served as a Static instance to reduce the creation.
Moreover, the Device, Bot, Locale, OS or Browser also have the empty instance.
When
UserAgentDetector.parseUserAgent()
with null or short header, it returns an empty result which has default value. IMHO, this value could be served as a Static instance to reduce the creation. Moreover, theDevice
,Bot
,Locale
,OS
orBrowser
also have the empty instance.