This repository was archived by the owner on Aug 17, 2018. It is now read-only.
File tree Expand file tree Collapse file tree
src/main/java/javax/servlet/jsp Expand file tree Collapse file tree Original file line number Diff line number Diff line change 131131 </executions >
132132 </plugin >
133133 <plugin >
134+ <groupId >org.apache.maven.plugins</groupId >
134135 <artifactId >maven-jar-plugin</artifactId >
135136 <configuration >
136137 <!-- Use default to include version in jar file name -->
182183 <plugin >
183184 <groupId >org.apache.maven.plugins</groupId >
184185 <artifactId >maven-javadoc-plugin</artifactId >
186+ <version >2.10.1</version >
185187 <executions >
186188 <execution >
187189 <id >attach-javadocs</id >
Original file line number Diff line number Diff line change 8989
9090public abstract class JspFactory {
9191
92- private static JspFactory deflt = null ;
92+ private static volatile JspFactory deflt = null ;
9393
9494 /**
9595 * Sole constructor. (For invocation by subclass constructors,
@@ -107,7 +107,7 @@ public JspFactory() {
107107 * @param deflt The default factory implementation
108108 */
109109
110- public static synchronized void setDefaultFactory (JspFactory deflt ) {
110+ public static void setDefaultFactory (JspFactory deflt ) {
111111 JspFactory .deflt = deflt ;
112112 }
113113
@@ -117,16 +117,7 @@ public static synchronized void setDefaultFactory(JspFactory deflt) {
117117 * @return the default factory for this implementation
118118 */
119119
120- public static synchronized JspFactory getDefaultFactory () {
121- if (deflt == null ) {
122- try {
123- Class factory = Class .forName ("org.apache.jasper.runtime.JspFactoryImpl" );
124- if (factory != null ) {
125- deflt = (JspFactory ) factory .newInstance ();
126- }
127- } catch (Exception ex ) {
128- }
129- }
120+ public static JspFactory getDefaultFactory () {
130121 return deflt ;
131122 }
132123
You can’t perform that action at this time.
0 commit comments