diff --git a/commons/src/test/resources/mergedLoadsMultiBusesVl.xiidm b/commons/src/test/resources/mergedLoadsMultiBusesVl.xiidm index afd02ea3c..a0fab37b9 100644 --- a/commons/src/test/resources/mergedLoadsMultiBusesVl.xiidm +++ b/commons/src/test/resources/mergedLoadsMultiBusesVl.xiidm @@ -1,5 +1,5 @@ - + diff --git a/commons/src/test/resources/mergedLoadsPnQn.xiidm b/commons/src/test/resources/mergedLoadsPnQn.xiidm index 743431fd2..8ea0e7220 100644 --- a/commons/src/test/resources/mergedLoadsPnQn.xiidm +++ b/commons/src/test/resources/mergedLoadsPnQn.xiidm @@ -1,5 +1,5 @@ - + diff --git a/commons/src/test/resources/mergedLoadsPnQp.xiidm b/commons/src/test/resources/mergedLoadsPnQp.xiidm index 91678abdd..955239c23 100644 --- a/commons/src/test/resources/mergedLoadsPnQp.xiidm +++ b/commons/src/test/resources/mergedLoadsPnQp.xiidm @@ -1,5 +1,5 @@ - + diff --git a/commons/src/test/resources/mergedLoadsPpQn.xiidm b/commons/src/test/resources/mergedLoadsPpQn.xiidm index 82613c9dd..9457d1b08 100644 --- a/commons/src/test/resources/mergedLoadsPpQn.xiidm +++ b/commons/src/test/resources/mergedLoadsPpQn.xiidm @@ -1,5 +1,5 @@ - + diff --git a/commons/src/test/resources/mergedLoadsPpQp.xiidm b/commons/src/test/resources/mergedLoadsPpQp.xiidm index 6353002c2..f72c58cba 100644 --- a/commons/src/test/resources/mergedLoadsPpQp.xiidm +++ b/commons/src/test/resources/mergedLoadsPpQp.xiidm @@ -1,5 +1,5 @@ - + diff --git a/commons/src/test/resources/mergedThreeLoadsGroups.xiidm b/commons/src/test/resources/mergedThreeLoadsGroups.xiidm index e81bcd16c..62728cc89 100644 --- a/commons/src/test/resources/mergedThreeLoadsGroups.xiidm +++ b/commons/src/test/resources/mergedThreeLoadsGroups.xiidm @@ -1,5 +1,5 @@ - + diff --git a/commons/src/test/resources/nonMergeableLoads.xiidm b/commons/src/test/resources/nonMergeableLoads.xiidm index 9de5e3985..5a0611c83 100644 --- a/commons/src/test/resources/nonMergeableLoads.xiidm +++ b/commons/src/test/resources/nonMergeableLoads.xiidm @@ -1,5 +1,5 @@ - + diff --git a/dynaflow/src/test/resources/output.xiidm b/dynaflow/src/test/resources/output.xiidm index e5fc1fabe..8a22372d9 100644 --- a/dynaflow/src/test/resources/output.xiidm +++ b/dynaflow/src/test/resources/output.xiidm @@ -1,5 +1,5 @@ - + diff --git a/dynaflow/src/test/resources/outputMergedLoads.xiidm b/dynaflow/src/test/resources/outputMergedLoads.xiidm index 57e61ecff..ac485a0ec 100644 --- a/dynaflow/src/test/resources/outputMergedLoads.xiidm +++ b/dynaflow/src/test/resources/outputMergedLoads.xiidm @@ -1,5 +1,5 @@ - + diff --git a/dynawaltz/src/main/java/com/powsybl/dynawaltz/builders/ModelConfigsJsonDeserializer.java b/dynawaltz/src/main/java/com/powsybl/dynawaltz/builders/ModelConfigsJsonDeserializer.java index fb8489c49..50d5551bb 100644 --- a/dynawaltz/src/main/java/com/powsybl/dynawaltz/builders/ModelConfigsJsonDeserializer.java +++ b/dynawaltz/src/main/java/com/powsybl/dynawaltz/builders/ModelConfigsJsonDeserializer.java @@ -29,7 +29,7 @@ public ModelConfigsJsonDeserializer() { public Map deserialize(JsonParser parser, DeserializationContext context) throws IOException { Map configMap = new HashMap<>(); while (parser.nextToken() != JsonToken.END_OBJECT) { - String category = parser.getCurrentName(); + String category = parser.currentName(); parser.nextToken(); configMap.put(category, parseModelConfigs(parser)); } @@ -65,7 +65,7 @@ private static ModelConfig parseModelConfig(JsonParser parser) { List properties = Collections.emptyList(); }; JsonUtil.parseObject(parser, name -> - switch (parser.getCurrentName()) { + switch (parser.currentName()) { case "lib" -> { parsingContext.lib = parser.nextTextValue(); yield true; diff --git a/dynawaltz/src/main/java/com/powsybl/dynawaltz/xml/JobsXml.java b/dynawaltz/src/main/java/com/powsybl/dynawaltz/xml/JobsXml.java index d0ec6e1fb..67c56091f 100644 --- a/dynawaltz/src/main/java/com/powsybl/dynawaltz/xml/JobsXml.java +++ b/dynawaltz/src/main/java/com/powsybl/dynawaltz/xml/JobsXml.java @@ -81,8 +81,8 @@ private static void writeModeler(XMLStreamWriter writer, DynaWaltzContext contex private static void writeSimulation(XMLStreamWriter writer, DynaWaltzContext context) throws XMLStreamException { writer.writeEmptyElement(DYN_URI, "simulation"); - writer.writeAttribute("startTime", Integer.toString(context.getParameters().getStartTime())); - writer.writeAttribute("stopTime", Integer.toString(context.getParameters().getStopTime())); + writer.writeAttribute("startTime", Double.toString(context.getParameters().getStartTime())); + writer.writeAttribute("stopTime", Double.toString(context.getParameters().getStopTime())); writer.writeAttribute("precision", Double.toString(context.getDynaWaltzParameters().getPrecision())); } diff --git a/dynawaltz/src/test/resources/DynaWaltzParameters.json b/dynawaltz/src/test/resources/DynaWaltzParameters.json index fdcdb051c..bb2be0ef0 100644 --- a/dynawaltz/src/test/resources/DynaWaltzParameters.json +++ b/dynawaltz/src/test/resources/DynaWaltzParameters.json @@ -1,7 +1,7 @@ { "version" : "1.0", - "startTime" : 0, - "stopTime" : 3600, + "startTime" : 0.0, + "stopTime" : 3600.0, "extensions" : { "DynaWaltzParameters" : { "networkParameters" : { diff --git a/dynawaltz/src/test/resources/jobs.xml b/dynawaltz/src/test/resources/jobs.xml index 363d4f347..932f6e78f 100644 --- a/dynawaltz/src/test/resources/jobs.xml +++ b/dynawaltz/src/test/resources/jobs.xml @@ -8,7 +8,7 @@ - + diff --git a/dynawaltz/src/test/resources/jobsWithDump.xml b/dynawaltz/src/test/resources/jobsWithDump.xml index 3456cb08c..9cb41ea07 100644 --- a/dynawaltz/src/test/resources/jobsWithDump.xml +++ b/dynawaltz/src/test/resources/jobsWithDump.xml @@ -9,7 +9,7 @@ - + diff --git a/dynawaltz/src/test/resources/mergedLoads.xiidm b/dynawaltz/src/test/resources/mergedLoads.xiidm index ee99c90c6..668158686 100644 --- a/dynawaltz/src/test/resources/mergedLoads.xiidm +++ b/dynawaltz/src/test/resources/mergedLoads.xiidm @@ -1,5 +1,5 @@ - + diff --git a/dynawaltz/src/test/resources/noMergedLoads.xiidm b/dynawaltz/src/test/resources/noMergedLoads.xiidm index 048ca7153..87a77c7aa 100644 --- a/dynawaltz/src/test/resources/noMergedLoads.xiidm +++ b/dynawaltz/src/test/resources/noMergedLoads.xiidm @@ -1,5 +1,5 @@ - + diff --git a/pom.xml b/pom.xml index b81885fc5..9003a2116 100644 --- a/pom.xml +++ b/pom.xml @@ -56,7 +56,7 @@ 17 - 6.4.0-SNAPSHOT + 6.4.0-RC2 4.0.14 ../distribution/target/site/jacoco-aggregate/jacoco.xml,