Skip to content

Commit

Permalink
Syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
safris committed Jul 17, 2023
1 parent 6a311b1 commit 1c6caf3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion binding/src/test/java/org/jsonx/ArrayCodecTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ private static void assertMembersEqual(final List<?> expected, final Relations a

final Iterator<?> expectedIterator = expected.iterator();
final Iterator<Relation> actualIterator = actual.iterator();
while (expectedIterator.hasNext()) { // [I]
while (expectedIterator.hasNext()) {
final Object member = expectedIterator.next();
final Relation relation = actualIterator.next();
if (member instanceof List) {
Expand Down
8 changes: 4 additions & 4 deletions jsonx-maven-plugin/src/test/java/org/jsonx/ValidCase.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ final class ValidCase<T> extends SuccessCase<PropertyTrial<T>> {
private static final String listDelimiter = "," + Strings.repeat(' ', JxEncoder.get().indent);

private static List<Object> format(final List<?> list, final Relations relations, final boolean escape) {
final int i$ = list.size();
if (i$ == 0)
final int size = list.size();
if (size == 0)
return Collections.EMPTY_LIST;

final ArrayList<Object> out = new ArrayList<>(i$);
final ArrayList<Object> out = new ArrayList<>(size);
final Iterator<?> itemIterator = list.iterator();
final Iterator<Relation> relationIterator = relations.iterator();
while (itemIterator.hasNext()) { // [I]
while (itemIterator.hasNext()) {
final Object item = itemIterator.next();
final Relation relation = relationIterator.next();
if (item instanceof List) {
Expand Down

0 comments on commit 1c6caf3

Please sign in to comment.