Skip to content

Commit 5990e2b

Browse files
committed
Minor cleanup
1 parent 50e3005 commit 5990e2b

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

pom.xml

+2-4
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,6 @@
375375
<release>17</release>
376376
<compilerArgs>
377377
<arg>-parameters</arg>
378-
<arg>--add-opens=java.base/java.lang=ALL-UNNAMED</arg>
379378
<arg>--add-opens=java.base/java.util=ALL-UNNAMED</arg>
380379
</compilerArgs>
381380
</configuration>
@@ -384,7 +383,7 @@
384383
<groupId>org.apache.maven.plugins</groupId>
385384
<artifactId>maven-surefire-plugin</artifactId>
386385
<configuration>
387-
<argLine>--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED</argLine>
386+
<argLine>--add-opens=java.base/java.util=ALL-UNNAMED</argLine>
388387
</configuration>
389388
</plugin>
390389
</plugins>
@@ -428,7 +427,6 @@
428427
<release>21</release>
429428
<compilerArgs>
430429
<arg>-parameters</arg>
431-
<arg>--add-opens=java.base/java.lang=ALL-UNNAMED</arg>
432430
<arg>--add-opens=java.base/java.util=ALL-UNNAMED</arg>
433431
</compilerArgs>
434432
</configuration>
@@ -437,7 +435,7 @@
437435
<groupId>org.apache.maven.plugins</groupId>
438436
<artifactId>maven-surefire-plugin</artifactId>
439437
<configuration>
440-
<argLine>--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED</argLine>
438+
<argLine>--add-opens=java.base/java.util=ALL-UNNAMED</argLine>
441439
</configuration>
442440
</plugin>
443441
</plugins>

src/test/java/com/fasterxml/jackson/databind/format/MapEntryFormatTest.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ public void testDefaultShapeOverride() throws Exception
187187
cfg.setFormat(JsonFormat.Value.forShape(JsonFormat.Shape.OBJECT)))
188188
.build();
189189
Map.Entry<String,String> input = new BeanWithMapEntry("foo", "bar").entry;
190-
assertTrue(mapper.writeValueAsString(input).equals(a2q("{'key':'foo','value':'bar'}")) || mapper.writeValueAsString(input).equals(a2q("{'value':'bar','key':'foo'}")));
190+
assertTrue(mapper.writeValueAsString(input).equals(a2q("{'key':'foo','value':'bar'}"))
191+
|| mapper.writeValueAsString(input).equals(a2q("{'value':'bar','key':'foo'}")));
191192
}
192193
}

0 commit comments

Comments
 (0)