@@ -47,7 +47,7 @@ int nextIndex() throws IOException {
47
47
48
48
@ Override
49
49
void next () throws IOException {
50
- offLen0 = this ;
50
+ current = this ;
51
51
++cursor ;
52
52
}
53
53
@@ -68,38 +68,38 @@ int previous() {
68
68
Error validate (final Annotation annotation , final int index , final Relations relations , final IdToElement idToElement , final Class <? extends Codec > codecType , final boolean validate , final TriPredicate <JxObject ,String ,Object > onPropertyDecode ) throws IOException {
69
69
lastIndex = index ;
70
70
if (trialType == TrialType .NULLABLE ) {
71
- offLen0 = null ;
71
+ current = null ;
72
72
}
73
73
else if (annotation instanceof StringElement ) {
74
74
final StringElement element = (StringElement )annotation ;
75
- offLen0 = element .nullable () && Math .random () < 0.5 ? null : StringTrial .createValid (element .type (), element .decode (), element .pattern ());
75
+ current = element .nullable () && Math .random () < 0.5 ? null : StringTrial .createValid (element .type (), element .decode (), element .pattern ());
76
76
}
77
77
else if (annotation instanceof NumberElement ) {
78
78
final NumberElement element = (NumberElement )annotation ;
79
- offLen0 = element .nullable () && Math .random () < 0.5 ? null : NumberTrial .createValid (element .type (), element .decode (), element .range (), element .scale ());
79
+ current = element .nullable () && Math .random () < 0.5 ? null : NumberTrial .createValid (element .type (), element .decode (), element .range (), element .scale ());
80
80
}
81
81
else if (annotation instanceof ObjectElement ) {
82
82
final ObjectElement element = (ObjectElement )annotation ;
83
- offLen0 = element .nullable () && Math .random () < 0.5 ? null : ObjectTrial .createValid (element .type ());
83
+ current = element .nullable () && Math .random () < 0.5 ? null : ObjectTrial .createValid (element .type ());
84
84
}
85
85
else if (annotation instanceof ArrayElement ) {
86
86
final ArrayElement element = (ArrayElement )annotation ;
87
- offLen0 = element .nullable () && Math .random () < 0.5 ? null : ArrayTrial .createValid (element .type (), element .minIterate (), element .maxIterate (), element .elementIds (), idToElement );
87
+ current = element .nullable () && Math .random () < 0.5 ? null : ArrayTrial .createValid (element .type (), element .minIterate (), element .maxIterate (), element .elementIds (), idToElement );
88
88
}
89
89
else if (annotation instanceof BooleanElement ) {
90
90
final BooleanElement element = (BooleanElement )annotation ;
91
- offLen0 = element .nullable () && Math .random () < 0.5 ? null : BooleanTrial .createValid (element .type (), element .decode ());
91
+ current = element .nullable () && Math .random () < 0.5 ? null : BooleanTrial .createValid (element .type (), element .decode ());
92
92
}
93
93
else if (annotation instanceof AnyElement ) {
94
94
final AnyElement element = (AnyElement )annotation ;
95
95
if (element .nullable () && Math .random () < 0.5 ) {
96
- offLen0 = null ;
96
+ current = null ;
97
97
}
98
98
else {
99
99
AnyTrial .createValid (element , new PentaConsumer <Object ,Class <?>,String ,String ,Annotation >() {
100
100
@ Override
101
101
public void accept (final Object value , final Class <?> type , final String decode , final String encode , final Annotation typeAnnotation ) {
102
- ArrayCreateIterator .this .offLen0 = value ;
102
+ ArrayCreateIterator .this .current = value ;
103
103
}
104
104
});
105
105
}
@@ -108,7 +108,7 @@ public void accept(final Object value, final Class<?> type, final String decode,
108
108
throw new UnsupportedOperationException ("Unsupported annotation type: " + annotation .annotationType ().getName ());
109
109
}
110
110
111
- relations .set (index , offLen0 , annotation );
111
+ relations .set (index , current , annotation );
112
112
return null ;
113
113
}
114
114
}
0 commit comments