Merge pull request #20407 from wycm

* pr/20407:
  Update copyright of changed file
  Polish

Closes gh-20407
This commit is contained in:
Stephane Nicoll 2020-03-06 11:59:57 +01:00
commit fb7e35e8e8
1 changed files with 2 additions and 2 deletions

View File

@ -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");
* you may not use this file except in compliance with the License.
@ -54,7 +54,7 @@ class RemoteUrlPropertyExtractor implements ApplicationListener<ApplicationEnvir
catch (URISyntaxException ex) {
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);
environment.getPropertySources().addLast(propertySource);
}