檢查 getServerInfo 方法的行為變更

此規則會標示對 javax.servlet.ServletContext.getServerInfo() 方法的參照,因為 Servlet 3.1 特性實作會傳回不同的值。在 Servlet 3.0 中,此方法會傳回 SMF WebContainer。在 Servlet 3.1 中,此方法會傳回 IBM WebSphere Liberty/8.5.5.<x>,其中 <x> 為修正套件號碼。 <x> 表示在執行應用程式的伺服器更新時,此值會變更。如需此方法的相關資訊,請參閱 介面 ServletContext

如需 Servlet 3.1 行為變更的相關資訊,請參閱下列資源: Servlet 3.1 行為變更