polishing javadoc

This commit is contained in:
Tom Hombergs
2017-08-09 22:53:04 +02:00
parent ae6541c25e
commit dd72e052f4
6 changed files with 64 additions and 35 deletions

View File

@@ -6,6 +6,9 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
* Loads the properties "pact.databaseStates.<NAME>" into the Spring environment.
*/
@ConfigurationProperties("pact")
public class PactProperties {
@@ -24,7 +27,7 @@ public class PactProperties {
// keys and moves the actual key into the value, separated by a comma. Thus, we have all entries duplicated
// and have to remove the entries with numeric keys.
if(!stateName.matches("^[0-9]+$")) {
if (!stateName.matches("^[0-9]+$")) {
String sqlScriptsString = entry.getValue();
String[] sqlScripts = sqlScriptsString.split(",");
databaseStatesList.add(new DatabaseState(stateName, sqlScripts));