This repository was archived by the owner on Aug 17, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-12
lines changed
src/main/java/javax/servlet/jsp Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change 131
131
</executions >
132
132
</plugin >
133
133
<plugin >
134
+ <groupId >org.apache.maven.plugins</groupId >
134
135
<artifactId >maven-jar-plugin</artifactId >
135
136
<configuration >
136
137
<!-- Use default to include version in jar file name -->
182
183
<plugin >
183
184
<groupId >org.apache.maven.plugins</groupId >
184
185
<artifactId >maven-javadoc-plugin</artifactId >
186
+ <version >2.10.1</version >
185
187
<executions >
186
188
<execution >
187
189
<id >attach-javadocs</id >
Original file line number Diff line number Diff line change 89
89
90
90
public abstract class JspFactory {
91
91
92
- private static JspFactory deflt = null ;
92
+ private static volatile JspFactory deflt = null ;
93
93
94
94
/**
95
95
* Sole constructor. (For invocation by subclass constructors,
@@ -107,7 +107,7 @@ public JspFactory() {
107
107
* @param deflt The default factory implementation
108
108
*/
109
109
110
- public static synchronized void setDefaultFactory (JspFactory deflt ) {
110
+ public static void setDefaultFactory (JspFactory deflt ) {
111
111
JspFactory .deflt = deflt ;
112
112
}
113
113
@@ -117,16 +117,7 @@ public static synchronized void setDefaultFactory(JspFactory deflt) {
117
117
* @return the default factory for this implementation
118
118
*/
119
119
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 () {
130
121
return deflt ;
131
122
}
132
123
You can’t perform that action at this time.
0 commit comments