File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
java/org/apache/solr/common/util
test/org/apache/solr/common/util Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -226,14 +226,13 @@ static synchronized void init(
226226 deprecatedKey ,
227227 key );
228228
229- if (key .endsWith (".enabled" ) && deprecatedKey .endsWith (".disabled" ) ) {
229+ if (key .endsWith (".enabled" ) && deprecatedKey .endsWith (".disabled" )) {
230230 log .warn (
231231 "Converting from legacy system property {} to modern .enabled equivalent {} by flipping the boolean property value." ,
232232 deprecatedKey ,
233233 key );
234234 setProperty (key , String .valueOf (!Boolean .getBoolean (deprecatedKey )));
235- }
236- else {
235+ } else {
237236 setProperty (key , sysProperties .getProperty (deprecatedKey ));
238237 }
239238 }
Original file line number Diff line number Diff line change @@ -119,6 +119,5 @@ public void testFlippingDisabledToEnabledPropertyName() {
119119
120120 EnvUtils .init (false , env , defaultProps );
121121 assertEquals (false , EnvUtils .getPropertyAsBool ("solr.ui.enabled" ));
122-
123122 }
124123}
You can’t perform that action at this time.
0 commit comments