Merge pull request #20407 from wycm

* pr/20407:
  Update copyright of changed file
  Polish

Closes gh-20407
pull/20411/head
Stephane Nicoll 5 years ago
commit fb7e35e8e8

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2019 the original author or authors. * Copyright 2012-2020 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -54,7 +54,7 @@ class RemoteUrlPropertyExtractor implements ApplicationListener<ApplicationEnvir
catch (URISyntaxException ex) { catch (URISyntaxException ex) {
throw new IllegalStateException("Malformed URL '" + url + "'"); throw new IllegalStateException("Malformed URL '" + url + "'");
} }
Map<String, Object> source = Collections.singletonMap("remoteUrl", (Object) url); Map<String, Object> source = Collections.singletonMap("remoteUrl", url);
PropertySource<?> propertySource = new MapPropertySource("remoteUrl", source); PropertySource<?> propertySource = new MapPropertySource("remoteUrl", source);
environment.getPropertySources().addLast(propertySource); environment.getPropertySources().addLast(propertySource);
} }

Loading…
Cancel
Save