Java

Java

Made by DeepSource

Class extends Servlet class and uses instance variables JAVA-S0370

Bug risk
Critical

This class extends from a Servlet class, and uses an instance member variable. Since only one instance of a Servlet class is created by the J2EE framework, and it is used in a multithreaded way, this paradigm is highly discouraged and most likely problematic.

Consider only using method local variables, or implement proper synchronization on the static fields.