Merge pull request #20407 from wycm
* pr/20407: Update copyright of changed file Polish Closes gh-20407
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user