Skip to content

Commit aa2e305

Browse files
committed
Regenerate
1 parent 0ce9947 commit aa2e305

File tree

60 files changed

+1910
-349
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+1910
-349
lines changed

test/vanilla/src/main/java/fixtures/bodyarray/Arrays.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
import io.reactivex.Maybe;
2121
import io.reactivex.Single;
2222
import io.reactivex.annotations.NonNull;
23-
import java.time.Duration;
24-
import java.time.LocalDate;
25-
import java.time.OffsetDateTime;
2623
import java.util.List;
2724
import java.util.Map;
2825
import java.util.UUID;
26+
import org.threeten.bp.Duration;
27+
import org.threeten.bp.LocalDate;
28+
import org.threeten.bp.OffsetDateTime;
2929

3030
/**
3131
* An instance of this class provides access to all the operations defined in

test/vanilla/src/main/java/fixtures/bodyarray/implementation/ArraysImpl.java

Lines changed: 298 additions & 52 deletions
Large diffs are not rendered by default.

test/vanilla/src/main/java/fixtures/bodyboolean/implementation/BoolsImpl.java

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import io.reactivex.Maybe;
2828
import io.reactivex.Single;
2929
import io.reactivex.annotations.NonNull;
30+
import io.reactivex.functions.Function;
3031

3132
/**
3233
* An instance of this class provides access to all the operations defined in
@@ -128,7 +129,12 @@ public Single<BodyResponse<Boolean>> getTrueWithRestResponseAsync() {
128129
*/
129130
public Maybe<Boolean> getTrueAsync() {
130131
return getTrueWithRestResponseAsync()
131-
.flatMapMaybe((BodyResponse<Boolean> res) -> res.body() == null ? Maybe.empty() : Maybe.just(res.body()));
132+
.flatMapMaybe(new Function<BodyResponse<Boolean>, Maybe<Boolean>>() {
133+
public Maybe<Boolean> apply(BodyResponse<Boolean> res) {
134+
return res.body() == null ? Maybe.<Boolean>empty() : Maybe.just(res.body());
135+
}
136+
}
137+
);
132138
}
133139

134140
/**
@@ -216,7 +222,12 @@ public Single<BodyResponse<Boolean>> getFalseWithRestResponseAsync() {
216222
*/
217223
public Maybe<Boolean> getFalseAsync() {
218224
return getFalseWithRestResponseAsync()
219-
.flatMapMaybe((BodyResponse<Boolean> res) -> res.body() == null ? Maybe.empty() : Maybe.just(res.body()));
225+
.flatMapMaybe(new Function<BodyResponse<Boolean>, Maybe<Boolean>>() {
226+
public Maybe<Boolean> apply(BodyResponse<Boolean> res) {
227+
return res.body() == null ? Maybe.<Boolean>empty() : Maybe.just(res.body());
228+
}
229+
}
230+
);
220231
}
221232

222233
/**
@@ -304,7 +315,12 @@ public Single<BodyResponse<Boolean>> getNullWithRestResponseAsync() {
304315
*/
305316
public Maybe<Boolean> getNullAsync() {
306317
return getNullWithRestResponseAsync()
307-
.flatMapMaybe((BodyResponse<Boolean> res) -> res.body() == null ? Maybe.empty() : Maybe.just(res.body()));
318+
.flatMapMaybe(new Function<BodyResponse<Boolean>, Maybe<Boolean>>() {
319+
public Maybe<Boolean> apply(BodyResponse<Boolean> res) {
320+
return res.body() == null ? Maybe.<Boolean>empty() : Maybe.just(res.body());
321+
}
322+
}
323+
);
308324
}
309325

310326
/**
@@ -345,6 +361,11 @@ public Single<BodyResponse<Boolean>> getInvalidWithRestResponseAsync() {
345361
*/
346362
public Maybe<Boolean> getInvalidAsync() {
347363
return getInvalidWithRestResponseAsync()
348-
.flatMapMaybe((BodyResponse<Boolean> res) -> res.body() == null ? Maybe.empty() : Maybe.just(res.body()));
364+
.flatMapMaybe(new Function<BodyResponse<Boolean>, Maybe<Boolean>>() {
365+
public Maybe<Boolean> apply(BodyResponse<Boolean> res) {
366+
return res.body() == null ? Maybe.<Boolean>empty() : Maybe.just(res.body());
367+
}
368+
}
369+
);
349370
}
350371
}

test/vanilla/src/main/java/fixtures/bodybyte/implementation/BytesImpl.java

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import io.reactivex.Maybe;
2828
import io.reactivex.Single;
2929
import io.reactivex.annotations.NonNull;
30+
import io.reactivex.functions.Function;
3031

3132
/**
3233
* An instance of this class provides access to all the operations defined in
@@ -123,7 +124,12 @@ public Single<BodyResponse<byte[]>> getNullWithRestResponseAsync() {
123124
*/
124125
public Maybe<byte[]> getNullAsync() {
125126
return getNullWithRestResponseAsync()
126-
.flatMapMaybe((BodyResponse<byte[]> res) -> res.body() == null ? Maybe.empty() : Maybe.just(res.body()));
127+
.flatMapMaybe(new Function<BodyResponse<byte[]>, Maybe<byte[]>>() {
128+
public Maybe<byte[]> apply(BodyResponse<byte[]> res) {
129+
return res.body() == null ? Maybe.<byte[]>empty() : Maybe.just(res.body());
130+
}
131+
}
132+
);
127133
}
128134

129135
/**
@@ -164,7 +170,12 @@ public Single<BodyResponse<byte[]>> getEmptyWithRestResponseAsync() {
164170
*/
165171
public Maybe<byte[]> getEmptyAsync() {
166172
return getEmptyWithRestResponseAsync()
167-
.flatMapMaybe((BodyResponse<byte[]> res) -> res.body() == null ? Maybe.empty() : Maybe.just(res.body()));
173+
.flatMapMaybe(new Function<BodyResponse<byte[]>, Maybe<byte[]>>() {
174+
public Maybe<byte[]> apply(BodyResponse<byte[]> res) {
175+
return res.body() == null ? Maybe.<byte[]>empty() : Maybe.just(res.body());
176+
}
177+
}
178+
);
168179
}
169180

170181
/**
@@ -205,7 +216,12 @@ public Single<BodyResponse<byte[]>> getNonAsciiWithRestResponseAsync() {
205216
*/
206217
public Maybe<byte[]> getNonAsciiAsync() {
207218
return getNonAsciiWithRestResponseAsync()
208-
.flatMapMaybe((BodyResponse<byte[]> res) -> res.body() == null ? Maybe.empty() : Maybe.just(res.body()));
219+
.flatMapMaybe(new Function<BodyResponse<byte[]>, Maybe<byte[]>>() {
220+
public Maybe<byte[]> apply(BodyResponse<byte[]> res) {
221+
return res.body() == null ? Maybe.<byte[]>empty() : Maybe.just(res.body());
222+
}
223+
}
224+
);
209225
}
210226

211227
/**
@@ -296,6 +312,11 @@ public Single<BodyResponse<byte[]>> getInvalidWithRestResponseAsync() {
296312
*/
297313
public Maybe<byte[]> getInvalidAsync() {
298314
return getInvalidWithRestResponseAsync()
299-
.flatMapMaybe((BodyResponse<byte[]> res) -> res.body() == null ? Maybe.empty() : Maybe.just(res.body()));
315+
.flatMapMaybe(new Function<BodyResponse<byte[]>, Maybe<byte[]>>() {
316+
public Maybe<byte[]> apply(BodyResponse<byte[]> res) {
317+
return res.body() == null ? Maybe.<byte[]>empty() : Maybe.just(res.body());
318+
}
319+
}
320+
);
300321
}
301322
}

test/vanilla/src/main/java/fixtures/bodycomplex/implementation/ArraysImpl.java

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import io.reactivex.Maybe;
3030
import io.reactivex.Single;
3131
import io.reactivex.annotations.NonNull;
32+
import io.reactivex.functions.Function;
3233

3334
/**
3435
* An instance of this class provides access to all the operations defined in
@@ -125,7 +126,12 @@ public Single<BodyResponse<ArrayWrapper>> getValidWithRestResponseAsync() {
125126
*/
126127
public Maybe<ArrayWrapper> getValidAsync() {
127128
return getValidWithRestResponseAsync()
128-
.flatMapMaybe((BodyResponse<ArrayWrapper> res) -> res.body() == null ? Maybe.empty() : Maybe.just(res.body()));
129+
.flatMapMaybe(new Function<BodyResponse<ArrayWrapper>, Maybe<ArrayWrapper>>() {
130+
public Maybe<ArrayWrapper> apply(BodyResponse<ArrayWrapper> res) {
131+
return res.body() == null ? Maybe.<ArrayWrapper>empty() : Maybe.just(res.body());
132+
}
133+
}
134+
);
129135
}
130136

131137
/**
@@ -217,7 +223,12 @@ public Single<BodyResponse<ArrayWrapper>> getEmptyWithRestResponseAsync() {
217223
*/
218224
public Maybe<ArrayWrapper> getEmptyAsync() {
219225
return getEmptyWithRestResponseAsync()
220-
.flatMapMaybe((BodyResponse<ArrayWrapper> res) -> res.body() == null ? Maybe.empty() : Maybe.just(res.body()));
226+
.flatMapMaybe(new Function<BodyResponse<ArrayWrapper>, Maybe<ArrayWrapper>>() {
227+
public Maybe<ArrayWrapper> apply(BodyResponse<ArrayWrapper> res) {
228+
return res.body() == null ? Maybe.<ArrayWrapper>empty() : Maybe.just(res.body());
229+
}
230+
}
231+
);
221232
}
222233

223234
/**
@@ -309,6 +320,11 @@ public Single<BodyResponse<ArrayWrapper>> getNotProvidedWithRestResponseAsync()
309320
*/
310321
public Maybe<ArrayWrapper> getNotProvidedAsync() {
311322
return getNotProvidedWithRestResponseAsync()
312-
.flatMapMaybe((BodyResponse<ArrayWrapper> res) -> res.body() == null ? Maybe.empty() : Maybe.just(res.body()));
323+
.flatMapMaybe(new Function<BodyResponse<ArrayWrapper>, Maybe<ArrayWrapper>>() {
324+
public Maybe<ArrayWrapper> apply(BodyResponse<ArrayWrapper> res) {
325+
return res.body() == null ? Maybe.<ArrayWrapper>empty() : Maybe.just(res.body());
326+
}
327+
}
328+
);
313329
}
314330
}

test/vanilla/src/main/java/fixtures/bodycomplex/implementation/BasicsImpl.java

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import io.reactivex.Maybe;
3131
import io.reactivex.Single;
3232
import io.reactivex.annotations.NonNull;
33+
import io.reactivex.functions.Function;
3334

3435
/**
3536
* An instance of this class provides access to all the operations defined in
@@ -131,7 +132,12 @@ public Single<BodyResponse<Basic>> getValidWithRestResponseAsync() {
131132
*/
132133
public Maybe<Basic> getValidAsync() {
133134
return getValidWithRestResponseAsync()
134-
.flatMapMaybe((BodyResponse<Basic> res) -> res.body() == null ? Maybe.empty() : Maybe.just(res.body()));
135+
.flatMapMaybe(new Function<BodyResponse<Basic>, Maybe<Basic>>() {
136+
public Maybe<Basic> apply(BodyResponse<Basic> res) {
137+
return res.body() == null ? Maybe.<Basic>empty() : Maybe.just(res.body());
138+
}
139+
}
140+
);
135141
}
136142

137143
/**
@@ -223,7 +229,12 @@ public Single<BodyResponse<Basic>> getInvalidWithRestResponseAsync() {
223229
*/
224230
public Maybe<Basic> getInvalidAsync() {
225231
return getInvalidWithRestResponseAsync()
226-
.flatMapMaybe((BodyResponse<Basic> res) -> res.body() == null ? Maybe.empty() : Maybe.just(res.body()));
232+
.flatMapMaybe(new Function<BodyResponse<Basic>, Maybe<Basic>>() {
233+
public Maybe<Basic> apply(BodyResponse<Basic> res) {
234+
return res.body() == null ? Maybe.<Basic>empty() : Maybe.just(res.body());
235+
}
236+
}
237+
);
227238
}
228239

229240
/**
@@ -264,7 +275,12 @@ public Single<BodyResponse<Basic>> getEmptyWithRestResponseAsync() {
264275
*/
265276
public Maybe<Basic> getEmptyAsync() {
266277
return getEmptyWithRestResponseAsync()
267-
.flatMapMaybe((BodyResponse<Basic> res) -> res.body() == null ? Maybe.empty() : Maybe.just(res.body()));
278+
.flatMapMaybe(new Function<BodyResponse<Basic>, Maybe<Basic>>() {
279+
public Maybe<Basic> apply(BodyResponse<Basic> res) {
280+
return res.body() == null ? Maybe.<Basic>empty() : Maybe.just(res.body());
281+
}
282+
}
283+
);
268284
}
269285

270286
/**
@@ -305,7 +321,12 @@ public Single<BodyResponse<Basic>> getNullWithRestResponseAsync() {
305321
*/
306322
public Maybe<Basic> getNullAsync() {
307323
return getNullWithRestResponseAsync()
308-
.flatMapMaybe((BodyResponse<Basic> res) -> res.body() == null ? Maybe.empty() : Maybe.just(res.body()));
324+
.flatMapMaybe(new Function<BodyResponse<Basic>, Maybe<Basic>>() {
325+
public Maybe<Basic> apply(BodyResponse<Basic> res) {
326+
return res.body() == null ? Maybe.<Basic>empty() : Maybe.just(res.body());
327+
}
328+
}
329+
);
309330
}
310331

311332
/**
@@ -346,6 +367,11 @@ public Single<BodyResponse<Basic>> getNotProvidedWithRestResponseAsync() {
346367
*/
347368
public Maybe<Basic> getNotProvidedAsync() {
348369
return getNotProvidedWithRestResponseAsync()
349-
.flatMapMaybe((BodyResponse<Basic> res) -> res.body() == null ? Maybe.empty() : Maybe.just(res.body()));
370+
.flatMapMaybe(new Function<BodyResponse<Basic>, Maybe<Basic>>() {
371+
public Maybe<Basic> apply(BodyResponse<Basic> res) {
372+
return res.body() == null ? Maybe.<Basic>empty() : Maybe.just(res.body());
373+
}
374+
}
375+
);
350376
}
351377
}

test/vanilla/src/main/java/fixtures/bodycomplex/implementation/DictionarysImpl.java

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import io.reactivex.Maybe;
3030
import io.reactivex.Single;
3131
import io.reactivex.annotations.NonNull;
32+
import io.reactivex.functions.Function;
3233

3334
/**
3435
* An instance of this class provides access to all the operations defined in
@@ -130,7 +131,12 @@ public Single<BodyResponse<DictionaryWrapper>> getValidWithRestResponseAsync() {
130131
*/
131132
public Maybe<DictionaryWrapper> getValidAsync() {
132133
return getValidWithRestResponseAsync()
133-
.flatMapMaybe((BodyResponse<DictionaryWrapper> res) -> res.body() == null ? Maybe.empty() : Maybe.just(res.body()));
134+
.flatMapMaybe(new Function<BodyResponse<DictionaryWrapper>, Maybe<DictionaryWrapper>>() {
135+
public Maybe<DictionaryWrapper> apply(BodyResponse<DictionaryWrapper> res) {
136+
return res.body() == null ? Maybe.<DictionaryWrapper>empty() : Maybe.just(res.body());
137+
}
138+
}
139+
);
134140
}
135141

136142
/**
@@ -222,7 +228,12 @@ public Single<BodyResponse<DictionaryWrapper>> getEmptyWithRestResponseAsync() {
222228
*/
223229
public Maybe<DictionaryWrapper> getEmptyAsync() {
224230
return getEmptyWithRestResponseAsync()
225-
.flatMapMaybe((BodyResponse<DictionaryWrapper> res) -> res.body() == null ? Maybe.empty() : Maybe.just(res.body()));
231+
.flatMapMaybe(new Function<BodyResponse<DictionaryWrapper>, Maybe<DictionaryWrapper>>() {
232+
public Maybe<DictionaryWrapper> apply(BodyResponse<DictionaryWrapper> res) {
233+
return res.body() == null ? Maybe.<DictionaryWrapper>empty() : Maybe.just(res.body());
234+
}
235+
}
236+
);
226237
}
227238

228239
/**
@@ -314,7 +325,12 @@ public Single<BodyResponse<DictionaryWrapper>> getNullWithRestResponseAsync() {
314325
*/
315326
public Maybe<DictionaryWrapper> getNullAsync() {
316327
return getNullWithRestResponseAsync()
317-
.flatMapMaybe((BodyResponse<DictionaryWrapper> res) -> res.body() == null ? Maybe.empty() : Maybe.just(res.body()));
328+
.flatMapMaybe(new Function<BodyResponse<DictionaryWrapper>, Maybe<DictionaryWrapper>>() {
329+
public Maybe<DictionaryWrapper> apply(BodyResponse<DictionaryWrapper> res) {
330+
return res.body() == null ? Maybe.<DictionaryWrapper>empty() : Maybe.just(res.body());
331+
}
332+
}
333+
);
318334
}
319335

320336
/**
@@ -355,6 +371,11 @@ public Single<BodyResponse<DictionaryWrapper>> getNotProvidedWithRestResponseAsy
355371
*/
356372
public Maybe<DictionaryWrapper> getNotProvidedAsync() {
357373
return getNotProvidedWithRestResponseAsync()
358-
.flatMapMaybe((BodyResponse<DictionaryWrapper> res) -> res.body() == null ? Maybe.empty() : Maybe.just(res.body()));
374+
.flatMapMaybe(new Function<BodyResponse<DictionaryWrapper>, Maybe<DictionaryWrapper>>() {
375+
public Maybe<DictionaryWrapper> apply(BodyResponse<DictionaryWrapper> res) {
376+
return res.body() == null ? Maybe.<DictionaryWrapper>empty() : Maybe.just(res.body());
377+
}
378+
}
379+
);
359380
}
360381
}

test/vanilla/src/main/java/fixtures/bodycomplex/implementation/InheritancesImpl.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import io.reactivex.Maybe;
3030
import io.reactivex.Single;
3131
import io.reactivex.annotations.NonNull;
32+
import io.reactivex.functions.Function;
3233

3334
/**
3435
* An instance of this class provides access to all the operations defined in
@@ -110,7 +111,12 @@ public Single<BodyResponse<Siamese>> getValidWithRestResponseAsync() {
110111
*/
111112
public Maybe<Siamese> getValidAsync() {
112113
return getValidWithRestResponseAsync()
113-
.flatMapMaybe((BodyResponse<Siamese> res) -> res.body() == null ? Maybe.empty() : Maybe.just(res.body()));
114+
.flatMapMaybe(new Function<BodyResponse<Siamese>, Maybe<Siamese>>() {
115+
public Maybe<Siamese> apply(BodyResponse<Siamese> res) {
116+
return res.body() == null ? Maybe.<Siamese>empty() : Maybe.just(res.body());
117+
}
118+
}
119+
);
114120
}
115121

116122
/**

test/vanilla/src/main/java/fixtures/bodycomplex/implementation/PolymorphicrecursivesImpl.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import io.reactivex.Maybe;
3030
import io.reactivex.Single;
3131
import io.reactivex.annotations.NonNull;
32+
import io.reactivex.functions.Function;
3233

3334
/**
3435
* An instance of this class provides access to all the operations defined in
@@ -110,7 +111,12 @@ public Single<BodyResponse<Fish>> getValidWithRestResponseAsync() {
110111
*/
111112
public Maybe<Fish> getValidAsync() {
112113
return getValidWithRestResponseAsync()
113-
.flatMapMaybe((BodyResponse<Fish> res) -> res.body() == null ? Maybe.empty() : Maybe.just(res.body()));
114+
.flatMapMaybe(new Function<BodyResponse<Fish>, Maybe<Fish>>() {
115+
public Maybe<Fish> apply(BodyResponse<Fish> res) {
116+
return res.body() == null ? Maybe.<Fish>empty() : Maybe.just(res.body());
117+
}
118+
}
119+
);
114120
}
115121

116122
/**

0 commit comments

Comments
 (0)