"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "spring-r2dbc/src/main/java/org/springframework/r2dbc/connection/init/CompositeDatabasePopulator.java" between
spring-framework-5.3.7.tar.gz and spring-framework-5.3.8.tar.gz

About: Spring Framework is an application framework for the Java platform and .NET Framework. Community edition.

CompositeDatabasePopulator.java  (spring-framework-5.3.7):CompositeDatabasePopulator.java  (spring-framework-5.3.8)
/* /*
* Copyright 2002-2020 the original author or authors. * Copyright 2002-2021 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.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
* https://www.apache.org/licenses/LICENSE-2.0 * https://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
skipping to change at line 32 skipping to change at line 32
import java.util.List; import java.util.List;
import io.r2dbc.spi.Connection; import io.r2dbc.spi.Connection;
import reactor.core.publisher.Flux; import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono; import reactor.core.publisher.Mono;
import org.springframework.util.Assert; import org.springframework.util.Assert;
/** /**
* Composite {@link DatabasePopulator} that delegates to a list of given * Composite {@link DatabasePopulator} that delegates to a list of given
* {@link DatabasePopulator} implementations, executing all scripts. * {@code DatabasePopulator} implementations, executing all scripts.
* *
* @author Dave Syer
* @author Juergen Hoeller
* @author Sam Brannen
* @author Kazuki Shimizu
* @author Mark Paluch * @author Mark Paluch
* @since 5.3 * @since 5.3
*/ */
public class CompositeDatabasePopulator implements DatabasePopulator { public class CompositeDatabasePopulator implements DatabasePopulator {
private final List<DatabasePopulator> populators = new ArrayList<>(4); private final List<DatabasePopulator> populators = new ArrayList<>(4);
/** /**
* Create an empty {@code CompositeDatabasePopulator}. * Create an empty {@code CompositeDatabasePopulator}.
* @see #setPopulators * @see #setPopulators
* @see #addPopulators * @see #addPopulators
*/ */
public CompositeDatabasePopulator() {} public CompositeDatabasePopulator() {
}
/** /**
* Create a {@code CompositeDatabasePopulator}. with the given populators . * Create a {@code CompositeDatabasePopulator}. with the given populators .
* @param populators one or more populators to delegate to. * @param populators one or more populators to delegate to.
*/ */
public CompositeDatabasePopulator(Collection<DatabasePopulator> populator s) { public CompositeDatabasePopulator(Collection<DatabasePopulator> populator s) {
Assert.notNull(populators, "Collection of DatabasePopulator must not be null"); Assert.notNull(populators, "DatabasePopulators must not be null") ;
this.populators.addAll(populators); this.populators.addAll(populators);
} }
/** /**
* Create a {@code CompositeDatabasePopulator} with the given populators. * Create a {@code CompositeDatabasePopulator} with the given populators.
* @param populators one or more populators to delegate to. * @param populators one or more populators to delegate to.
*/ */
public CompositeDatabasePopulator(DatabasePopulator... populators) { public CompositeDatabasePopulator(DatabasePopulator... populators) {
Assert.notNull(populators, "DatabasePopulators must not be null") ; Assert.notNull(populators, "DatabasePopulators must not be null") ;
this.populators.addAll(Arrays.asList(populators)); this.populators.addAll(Arrays.asList(populators));
 End of changes. 5 change blocks. 
4 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)