Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public int getOrder() {
@Override
public void onApplicationEvent(ContextRefreshedEvent event) {
ApplicationContext context = event.getApplicationContext();
if (context instanceof ConfigurableApplicationContext && context == event.getSource()) {
context.publishEvent(new ParentContextAvailableEvent((ConfigurableApplicationContext) context));
if (context instanceof ConfigurableApplicationContext configurableApplicationContext && context == event.getSource()) {
context.publishEvent(new ParentContextAvailableEvent(configurableApplicationContext));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,8 @@ private void flatten(Properties properties, Map<String, Object> input, String pa
// Need a compound key
flatten(properties, (Map<String, Object>) value, name);
}
else if (value instanceof Collection) {
else if (value instanceof Collection<?> collection) {
// Need a compound key
Collection<Object> collection = (Collection<Object>) value;
properties.put(name, StringUtils.collectionToCommaDelimitedString(collection));
int count = 0;
for (Object item : collection) {
Expand Down