@@ -86,11 +86,7 @@ public String getRackupPath() {
8686
8787 @ Override
8888 public Integer getRuntimeTimeoutSeconds () {
89- Integer timeout = getPositiveInteger ("jruby.runtime.acquire.timeout" );
90- if (timeout == null ) { // backwards compatibility with 1.0.x :
91- timeout = getPositiveInteger ("jruby.runtime.timeout.sec" );
92- }
93- return timeout ;
89+ return getPositiveInteger ("jruby.runtime.acquire.timeout" );
9490 }
9591
9692 @ Override
@@ -102,27 +98,15 @@ public String[] getRuntimeArguments() {
10298 @ Override
10399 public Integer getNumInitializerThreads () {
104100 Number threads = getNumberProperty ("jruby.runtime.init.threads" );
105- if (threads == null ) { // backwards compatibility with 1.0.x :
106- threads = getNumberProperty ("jruby.runtime.initializer.threads" );
107- }
108101 return threads != null ? threads .intValue () : null ;
109102 }
110103
111104 @ Override
112105 public boolean isSerialInitialization () {
113106 Boolean serial = getBooleanProperty ("jruby.runtime.init.serial" );
114- if (serial == null ) { // backwards compatibility with 1.0.x :
115- serial = getBooleanProperty ("jruby.init.serial" );
116-
117- if (serial == null ) { // if initializer threads set to <= 0
118- Integer threads = getNumInitializerThreads ();
119- if ( threads != null && threads < 0 ) {
120- serial = Boolean .TRUE ;
121- }
122- else {
123- serial = Boolean .FALSE ;
124- }
125- }
107+ if (serial == null ) { // if initializer threads set to <= 0
108+ Integer threads = getNumInitializerThreads ();
109+ serial = threads != null && threads < 0 ? Boolean .TRUE : Boolean .FALSE ;
126110 }
127111 return serial ;
128112 }
@@ -232,11 +216,7 @@ public Integer getInitialMemoryBufferSize() {
232216
233217 @ Override
234218 public Integer getMaximumMemoryBufferSize () {
235- Integer max = getPositiveInteger ("jruby.rack.request.size.maximum.bytes" );
236- if (max == null ) { // backwards compatibility with 1.0.x :
237- max = getPositiveInteger ("jruby.rack.request.size.threshold.bytes" );
238- }
239- return max ;
219+ return getPositiveInteger ("jruby.rack.request.size.maximum.bytes" );
240220 }
241221
242222 @ Override
0 commit comments