Skip to content

Commit d87886b

Browse files
committed
Update auto-generated Java bindings (all functionally equivalent)
1 parent 9629082 commit d87886b

File tree

153 files changed

+10394
-7064
lines changed

Some content is hidden

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

153 files changed

+10394
-7064
lines changed

src/main/java/org/ldk/impl/bindings.java

Lines changed: 813 additions & 563 deletions
Large diffs are not rendered by default.

src/main/java/org/ldk/structs/BackgroundProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public Result_NoneErrorZ join() {
126126
// However, in some cases (eg here), there is no way to clone an object, and thus
127127
// we actually have to pass full ownership to Rust.
128128
// Thus, after this call, this is reset to null and is now a dummy object.
129-
this.ptr = 0;
129+
this.ptr = 0;;
130130
return ret_hu_conv;
131131
}
132132

@@ -154,7 +154,7 @@ public Result_NoneErrorZ stop() {
154154
// However, in some cases (eg here), there is no way to clone an object, and thus
155155
// we actually have to pass full ownership to Rust.
156156
// Thus, after this call, this is reset to null and is now a dummy object.
157-
this.ptr = 0;
157+
this.ptr = 0;;
158158
return ret_hu_conv;
159159
}
160160

src/main/java/org/ldk/structs/ChainMonitor.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ public Balance[] get_claimable_balances(ChannelDetails[] ignored_channels) {
7070
long[] ret = bindings.ChainMonitor_get_claimable_balances(this.ptr, ignored_channels != null ? Arrays.stream(ignored_channels).mapToLong(ignored_channels_conv_16 -> ignored_channels_conv_16 == null ? 0 : ignored_channels_conv_16.ptr & ~1).toArray() : null);
7171
Reference.reachabilityFence(this);
7272
Reference.reachabilityFence(ignored_channels);
73-
Balance[] ret_conv_9_arr = new Balance[ret.length];
74-
for (int j = 0; j < ret.length; j++) {
73+
int ret_conv_9_len = ret.length;
74+
Balance[] ret_conv_9_arr = new Balance[ret_conv_9_len];
75+
for (int j = 0; j < ret_conv_9_len; j++) {
7576
long ret_conv_9 = ret[j];
7677
Balance ret_conv_9_hu_conv = Balance.constr_from_ptr(ret_conv_9);
7778
ret_conv_9_hu_conv.ptrs_to.add(this);
@@ -105,8 +106,9 @@ public Result_LockedChannelMonitorNoneZ get_monitor(OutPoint funding_txo) {
105106
public OutPoint[] list_monitors() {
106107
long[] ret = bindings.ChainMonitor_list_monitors(this.ptr);
107108
Reference.reachabilityFence(this);
108-
OutPoint[] ret_conv_10_arr = new OutPoint[ret.length];
109-
for (int k = 0; k < ret.length; k++) {
109+
int ret_conv_10_len = ret.length;
110+
OutPoint[] ret_conv_10_arr = new OutPoint[ret_conv_10_len];
111+
for (int k = 0; k < ret_conv_10_len; k++) {
110112
long ret_conv_10 = ret[k];
111113
OutPoint ret_conv_10_hu_conv = null; if (ret_conv_10 < 0 || ret_conv_10 > 4096) { ret_conv_10_hu_conv = new OutPoint(null, ret_conv_10); }
112114
ret_conv_10_hu_conv.ptrs_to.add(this);

src/main/java/org/ldk/structs/ChannelManager.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,9 @@ public Result__u832APIErrorZ create_channel(byte[] their_network_key, long chann
151151
public ChannelDetails[] list_channels() {
152152
long[] ret = bindings.ChannelManager_list_channels(this.ptr);
153153
Reference.reachabilityFence(this);
154-
ChannelDetails[] ret_conv_16_arr = new ChannelDetails[ret.length];
155-
for (int q = 0; q < ret.length; q++) {
154+
int ret_conv_16_len = ret.length;
155+
ChannelDetails[] ret_conv_16_arr = new ChannelDetails[ret_conv_16_len];
156+
for (int q = 0; q < ret_conv_16_len; q++) {
156157
long ret_conv_16 = ret[q];
157158
ChannelDetails ret_conv_16_hu_conv = null; if (ret_conv_16 < 0 || ret_conv_16 > 4096) { ret_conv_16_hu_conv = new ChannelDetails(null, ret_conv_16); }
158159
ret_conv_16_hu_conv.ptrs_to.add(this);
@@ -172,8 +173,9 @@ public ChannelDetails[] list_channels() {
172173
public ChannelDetails[] list_usable_channels() {
173174
long[] ret = bindings.ChannelManager_list_usable_channels(this.ptr);
174175
Reference.reachabilityFence(this);
175-
ChannelDetails[] ret_conv_16_arr = new ChannelDetails[ret.length];
176-
for (int q = 0; q < ret.length; q++) {
176+
int ret_conv_16_len = ret.length;
177+
ChannelDetails[] ret_conv_16_arr = new ChannelDetails[ret_conv_16_len];
178+
for (int q = 0; q < ret_conv_16_len; q++) {
177179
long ret_conv_16 = ret[q];
178180
ChannelDetails ret_conv_16_hu_conv = null; if (ret_conv_16 < 0 || ret_conv_16 > 4096) { ret_conv_16_hu_conv = new ChannelDetails(null, ret_conv_16); }
179181
ret_conv_16_hu_conv.ptrs_to.add(this);

src/main/java/org/ldk/structs/ChannelMonitor.java

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,9 @@ public TwoTuple_OutPointScriptZ get_funding_txo() {
113113
public TwoTuple_TxidCVec_C2Tuple_u32ScriptZZZ[] get_outputs_to_watch() {
114114
long[] ret = bindings.ChannelMonitor_get_outputs_to_watch(this.ptr);
115115
Reference.reachabilityFence(this);
116-
TwoTuple_TxidCVec_C2Tuple_u32ScriptZZZ[] ret_conv_40_arr = new TwoTuple_TxidCVec_C2Tuple_u32ScriptZZZ[ret.length];
117-
for (int o = 0; o < ret.length; o++) {
116+
int ret_conv_40_len = ret.length;
117+
TwoTuple_TxidCVec_C2Tuple_u32ScriptZZZ[] ret_conv_40_arr = new TwoTuple_TxidCVec_C2Tuple_u32ScriptZZZ[ret_conv_40_len];
118+
for (int o = 0; o < ret_conv_40_len; o++) {
118119
long ret_conv_40 = ret[o];
119120
TwoTuple_TxidCVec_C2Tuple_u32ScriptZZZ ret_conv_40_hu_conv = new TwoTuple_TxidCVec_C2Tuple_u32ScriptZZZ(null, ret_conv_40);
120121
ret_conv_40_hu_conv.ptrs_to.add(this);
@@ -142,8 +143,9 @@ public void load_outputs_to_watch(Filter filter) {
142143
public MonitorEvent[] get_and_clear_pending_monitor_events() {
143144
long[] ret = bindings.ChannelMonitor_get_and_clear_pending_monitor_events(this.ptr);
144145
Reference.reachabilityFence(this);
145-
MonitorEvent[] ret_conv_14_arr = new MonitorEvent[ret.length];
146-
for (int o = 0; o < ret.length; o++) {
146+
int ret_conv_14_len = ret.length;
147+
MonitorEvent[] ret_conv_14_arr = new MonitorEvent[ret_conv_14_len];
148+
for (int o = 0; o < ret_conv_14_len; o++) {
147149
long ret_conv_14 = ret[o];
148150
MonitorEvent ret_conv_14_hu_conv = MonitorEvent.constr_from_ptr(ret_conv_14);
149151
ret_conv_14_hu_conv.ptrs_to.add(this);
@@ -163,8 +165,9 @@ public MonitorEvent[] get_and_clear_pending_monitor_events() {
163165
public Event[] get_and_clear_pending_events() {
164166
long[] ret = bindings.ChannelMonitor_get_and_clear_pending_events(this.ptr);
165167
Reference.reachabilityFence(this);
166-
Event[] ret_conv_7_arr = new Event[ret.length];
167-
for (int h = 0; h < ret.length; h++) {
168+
int ret_conv_7_len = ret.length;
169+
Event[] ret_conv_7_arr = new Event[ret_conv_7_len];
170+
for (int h = 0; h < ret_conv_7_len; h++) {
168171
long ret_conv_7 = ret[h];
169172
Event ret_conv_7_hu_conv = Event.constr_from_ptr(ret_conv_7);
170173
ret_conv_7_hu_conv.ptrs_to.add(this);
@@ -214,8 +217,9 @@ public TwoTuple_TxidCVec_C2Tuple_u32TxOutZZZ[] block_connected(byte[] header, Tw
214217
Reference.reachabilityFence(broadcaster);
215218
Reference.reachabilityFence(fee_estimator);
216219
Reference.reachabilityFence(logger);
217-
TwoTuple_TxidCVec_C2Tuple_u32TxOutZZZ[] ret_conv_39_arr = new TwoTuple_TxidCVec_C2Tuple_u32TxOutZZZ[ret.length];
218-
for (int n = 0; n < ret.length; n++) {
220+
int ret_conv_39_len = ret.length;
221+
TwoTuple_TxidCVec_C2Tuple_u32TxOutZZZ[] ret_conv_39_arr = new TwoTuple_TxidCVec_C2Tuple_u32TxOutZZZ[ret_conv_39_len];
222+
for (int n = 0; n < ret_conv_39_len; n++) {
219223
long ret_conv_39 = ret[n];
220224
TwoTuple_TxidCVec_C2Tuple_u32TxOutZZZ ret_conv_39_hu_conv = new TwoTuple_TxidCVec_C2Tuple_u32TxOutZZZ(null, ret_conv_39);
221225
ret_conv_39_hu_conv.ptrs_to.add(this);
@@ -262,8 +266,9 @@ public TwoTuple_TxidCVec_C2Tuple_u32TxOutZZZ[] transactions_confirmed(byte[] hea
262266
Reference.reachabilityFence(broadcaster);
263267
Reference.reachabilityFence(fee_estimator);
264268
Reference.reachabilityFence(logger);
265-
TwoTuple_TxidCVec_C2Tuple_u32TxOutZZZ[] ret_conv_39_arr = new TwoTuple_TxidCVec_C2Tuple_u32TxOutZZZ[ret.length];
266-
for (int n = 0; n < ret.length; n++) {
269+
int ret_conv_39_len = ret.length;
270+
TwoTuple_TxidCVec_C2Tuple_u32TxOutZZZ[] ret_conv_39_arr = new TwoTuple_TxidCVec_C2Tuple_u32TxOutZZZ[ret_conv_39_len];
271+
for (int n = 0; n < ret_conv_39_len; n++) {
267272
long ret_conv_39 = ret[n];
268273
TwoTuple_TxidCVec_C2Tuple_u32TxOutZZZ ret_conv_39_hu_conv = new TwoTuple_TxidCVec_C2Tuple_u32TxOutZZZ(null, ret_conv_39);
269274
ret_conv_39_hu_conv.ptrs_to.add(this);
@@ -312,8 +317,9 @@ public TwoTuple_TxidCVec_C2Tuple_u32TxOutZZZ[] best_block_updated(byte[] header,
312317
Reference.reachabilityFence(broadcaster);
313318
Reference.reachabilityFence(fee_estimator);
314319
Reference.reachabilityFence(logger);
315-
TwoTuple_TxidCVec_C2Tuple_u32TxOutZZZ[] ret_conv_39_arr = new TwoTuple_TxidCVec_C2Tuple_u32TxOutZZZ[ret.length];
316-
for (int n = 0; n < ret.length; n++) {
320+
int ret_conv_39_len = ret.length;
321+
TwoTuple_TxidCVec_C2Tuple_u32TxOutZZZ[] ret_conv_39_arr = new TwoTuple_TxidCVec_C2Tuple_u32TxOutZZZ[ret_conv_39_len];
322+
for (int n = 0; n < ret_conv_39_len; n++) {
317323
long ret_conv_39 = ret[n];
318324
TwoTuple_TxidCVec_C2Tuple_u32TxOutZZZ ret_conv_39_hu_conv = new TwoTuple_TxidCVec_C2Tuple_u32TxOutZZZ(null, ret_conv_39);
319325
ret_conv_39_hu_conv.ptrs_to.add(this);
@@ -366,8 +372,9 @@ public BestBlock current_best_block() {
366372
public Balance[] get_claimable_balances() {
367373
long[] ret = bindings.ChannelMonitor_get_claimable_balances(this.ptr);
368374
Reference.reachabilityFence(this);
369-
Balance[] ret_conv_9_arr = new Balance[ret.length];
370-
for (int j = 0; j < ret.length; j++) {
375+
int ret_conv_9_len = ret.length;
376+
Balance[] ret_conv_9_arr = new Balance[ret_conv_9_len];
377+
for (int j = 0; j < ret_conv_9_len; j++) {
371378
long ret_conv_9 = ret[j];
372379
Balance ret_conv_9_hu_conv = Balance.constr_from_ptr(ret_conv_9);
373380
ret_conv_9_hu_conv.ptrs_to.add(this);

src/main/java/org/ldk/structs/CommitmentUpdate.java

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ protected void finalize() throws Throwable {
2727
public UpdateAddHTLC[] get_update_add_htlcs() {
2828
long[] ret = bindings.CommitmentUpdate_get_update_add_htlcs(this.ptr);
2929
Reference.reachabilityFence(this);
30-
UpdateAddHTLC[] ret_conv_15_arr = new UpdateAddHTLC[ret.length];
31-
for (int p = 0; p < ret.length; p++) {
30+
int ret_conv_15_len = ret.length;
31+
UpdateAddHTLC[] ret_conv_15_arr = new UpdateAddHTLC[ret_conv_15_len];
32+
for (int p = 0; p < ret_conv_15_len; p++) {
3233
long ret_conv_15 = ret[p];
3334
UpdateAddHTLC ret_conv_15_hu_conv = null; if (ret_conv_15 < 0 || ret_conv_15 > 4096) { ret_conv_15_hu_conv = new UpdateAddHTLC(null, ret_conv_15); }
3435
ret_conv_15_hu_conv.ptrs_to.add(this);
@@ -52,8 +53,9 @@ public void set_update_add_htlcs(UpdateAddHTLC[] val) {
5253
public UpdateFulfillHTLC[] get_update_fulfill_htlcs() {
5354
long[] ret = bindings.CommitmentUpdate_get_update_fulfill_htlcs(this.ptr);
5455
Reference.reachabilityFence(this);
55-
UpdateFulfillHTLC[] ret_conv_19_arr = new UpdateFulfillHTLC[ret.length];
56-
for (int t = 0; t < ret.length; t++) {
56+
int ret_conv_19_len = ret.length;
57+
UpdateFulfillHTLC[] ret_conv_19_arr = new UpdateFulfillHTLC[ret_conv_19_len];
58+
for (int t = 0; t < ret_conv_19_len; t++) {
5759
long ret_conv_19 = ret[t];
5860
UpdateFulfillHTLC ret_conv_19_hu_conv = null; if (ret_conv_19 < 0 || ret_conv_19 > 4096) { ret_conv_19_hu_conv = new UpdateFulfillHTLC(null, ret_conv_19); }
5961
ret_conv_19_hu_conv.ptrs_to.add(this);
@@ -77,8 +79,9 @@ public void set_update_fulfill_htlcs(UpdateFulfillHTLC[] val) {
7779
public UpdateFailHTLC[] get_update_fail_htlcs() {
7880
long[] ret = bindings.CommitmentUpdate_get_update_fail_htlcs(this.ptr);
7981
Reference.reachabilityFence(this);
80-
UpdateFailHTLC[] ret_conv_16_arr = new UpdateFailHTLC[ret.length];
81-
for (int q = 0; q < ret.length; q++) {
82+
int ret_conv_16_len = ret.length;
83+
UpdateFailHTLC[] ret_conv_16_arr = new UpdateFailHTLC[ret_conv_16_len];
84+
for (int q = 0; q < ret_conv_16_len; q++) {
8285
long ret_conv_16 = ret[q];
8386
UpdateFailHTLC ret_conv_16_hu_conv = null; if (ret_conv_16 < 0 || ret_conv_16 > 4096) { ret_conv_16_hu_conv = new UpdateFailHTLC(null, ret_conv_16); }
8487
ret_conv_16_hu_conv.ptrs_to.add(this);
@@ -102,8 +105,9 @@ public void set_update_fail_htlcs(UpdateFailHTLC[] val) {
102105
public UpdateFailMalformedHTLC[] get_update_fail_malformed_htlcs() {
103106
long[] ret = bindings.CommitmentUpdate_get_update_fail_malformed_htlcs(this.ptr);
104107
Reference.reachabilityFence(this);
105-
UpdateFailMalformedHTLC[] ret_conv_25_arr = new UpdateFailMalformedHTLC[ret.length];
106-
for (int z = 0; z < ret.length; z++) {
108+
int ret_conv_25_len = ret.length;
109+
UpdateFailMalformedHTLC[] ret_conv_25_arr = new UpdateFailMalformedHTLC[ret_conv_25_len];
110+
for (int z = 0; z < ret_conv_25_len; z++) {
107111
long ret_conv_25 = ret[z];
108112
UpdateFailMalformedHTLC ret_conv_25_hu_conv = null; if (ret_conv_25 < 0 || ret_conv_25 > 4096) { ret_conv_25_hu_conv = new UpdateFailMalformedHTLC(null, ret_conv_25); }
109113
ret_conv_25_hu_conv.ptrs_to.add(this);

src/main/java/org/ldk/structs/Confirm.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,9 @@ public static Confirm new_impl(ConfirmInterface arg) {
112112
final LDKConfirmHolder impl_holder = new LDKConfirmHolder();
113113
impl_holder.held = new Confirm(new bindings.LDKConfirm() {
114114
@Override public void transactions_confirmed(byte[] header, long[] txdata, int height) {
115-
TwoTuple_usizeTransactionZ[] txdata_conv_28_arr = new TwoTuple_usizeTransactionZ[txdata.length];
116-
for (int c = 0; c < txdata.length; c++) {
115+
int txdata_conv_28_len = txdata.length;
116+
TwoTuple_usizeTransactionZ[] txdata_conv_28_arr = new TwoTuple_usizeTransactionZ[txdata_conv_28_len];
117+
for (int c = 0; c < txdata_conv_28_len; c++) {
117118
long txdata_conv_28 = txdata[c];
118119
TwoTuple_usizeTransactionZ txdata_conv_28_hu_conv = new TwoTuple_usizeTransactionZ(null, txdata_conv_28);
119120
txdata_conv_28_hu_conv.ptrs_to.add(this);

src/main/java/org/ldk/structs/CustomMessageHandler.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ public Result_NoneLightningErrorZ handle_custom_message(Type msg, byte[] sender_
9292
public TwoTuple_PublicKeyTypeZ[] get_and_clear_pending_msg() {
9393
long[] ret = bindings.CustomMessageHandler_get_and_clear_pending_msg(this.ptr);
9494
Reference.reachabilityFence(this);
95-
TwoTuple_PublicKeyTypeZ[] ret_conv_25_arr = new TwoTuple_PublicKeyTypeZ[ret.length];
96-
for (int z = 0; z < ret.length; z++) {
95+
int ret_conv_25_len = ret.length;
96+
TwoTuple_PublicKeyTypeZ[] ret_conv_25_arr = new TwoTuple_PublicKeyTypeZ[ret_conv_25_len];
97+
for (int z = 0; z < ret_conv_25_len; z++) {
9798
long ret_conv_25 = ret[z];
9899
TwoTuple_PublicKeyTypeZ ret_conv_25_hu_conv = new TwoTuple_PublicKeyTypeZ(null, ret_conv_25);
99100
ret_conv_25_hu_conv.ptrs_to.add(this);

src/main/java/org/ldk/structs/Event.java

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,9 @@ private PaymentPathFailed(long ptr, bindings.LDKEvent.PaymentPathFailed obj) {
292292
this.network_update = network_update_hu_conv;
293293
this.all_paths_failed = obj.all_paths_failed;
294294
long[] path = obj.path;
295-
RouteHop[] path_conv_10_arr = new RouteHop[path.length];
296-
for (int k = 0; k < path.length; k++) {
295+
int path_conv_10_len = path.length;
296+
RouteHop[] path_conv_10_arr = new RouteHop[path_conv_10_len];
297+
for (int k = 0; k < path_conv_10_len; k++) {
297298
long path_conv_10 = path[k];
298299
RouteHop path_conv_10_hu_conv = null; if (path_conv_10 < 0 || path_conv_10 > 4096) { path_conv_10_hu_conv = new RouteHop(null, path_conv_10); }
299300
path_conv_10_hu_conv.ptrs_to.add(this);
@@ -376,8 +377,9 @@ public final static class SpendableOutputs extends Event {
376377
private SpendableOutputs(long ptr, bindings.LDKEvent.SpendableOutputs obj) {
377378
super(null, ptr);
378379
long[] outputs = obj.outputs;
379-
SpendableOutputDescriptor[] outputs_conv_27_arr = new SpendableOutputDescriptor[outputs.length];
380-
for (int b = 0; b < outputs.length; b++) {
380+
int outputs_conv_27_len = outputs.length;
381+
SpendableOutputDescriptor[] outputs_conv_27_arr = new SpendableOutputDescriptor[outputs_conv_27_len];
382+
for (int b = 0; b < outputs_conv_27_len; b++) {
381383
long outputs_conv_27 = outputs[b];
382384
SpendableOutputDescriptor outputs_conv_27_hu_conv = SpendableOutputDescriptor.constr_from_ptr(outputs_conv_27);
383385
outputs_conv_27_hu_conv.ptrs_to.add(this);
@@ -505,8 +507,9 @@ private PaymentPathSuccessful(long ptr, bindings.LDKEvent.PaymentPathSuccessful
505507
this.payment_id = obj.payment_id;
506508
this.payment_hash = obj.payment_hash;
507509
long[] path = obj.path;
508-
RouteHop[] path_conv_10_arr = new RouteHop[path.length];
509-
for (int k = 0; k < path.length; k++) {
510+
int path_conv_10_len = path.length;
511+
RouteHop[] path_conv_10_arr = new RouteHop[path_conv_10_len];
512+
for (int k = 0; k < path_conv_10_len; k++) {
510513
long path_conv_10 = path[k];
511514
RouteHop path_conv_10_hu_conv = null; if (path_conv_10 < 0 || path_conv_10 > 4096) { path_conv_10_hu_conv = new RouteHop(null, path_conv_10); }
512515
path_conv_10_hu_conv.ptrs_to.add(this);

src/main/java/org/ldk/structs/Invoice.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,9 @@ public long min_final_cltv_expiry() {
211211
public PrivateRoute[] private_routes() {
212212
long[] ret = bindings.Invoice_private_routes(this.ptr);
213213
Reference.reachabilityFence(this);
214-
PrivateRoute[] ret_conv_14_arr = new PrivateRoute[ret.length];
215-
for (int o = 0; o < ret.length; o++) {
214+
int ret_conv_14_len = ret.length;
215+
PrivateRoute[] ret_conv_14_arr = new PrivateRoute[ret_conv_14_len];
216+
for (int o = 0; o < ret_conv_14_len; o++) {
216217
long ret_conv_14 = ret[o];
217218
PrivateRoute ret_conv_14_hu_conv = null; if (ret_conv_14 < 0 || ret_conv_14 > 4096) { ret_conv_14_hu_conv = new PrivateRoute(null, ret_conv_14); }
218219
ret_conv_14_hu_conv.ptrs_to.add(this);
@@ -227,8 +228,9 @@ public PrivateRoute[] private_routes() {
227228
public RouteHint[] route_hints() {
228229
long[] ret = bindings.Invoice_route_hints(this.ptr);
229230
Reference.reachabilityFence(this);
230-
RouteHint[] ret_conv_11_arr = new RouteHint[ret.length];
231-
for (int l = 0; l < ret.length; l++) {
231+
int ret_conv_11_len = ret.length;
232+
RouteHint[] ret_conv_11_arr = new RouteHint[ret_conv_11_len];
233+
for (int l = 0; l < ret_conv_11_len; l++) {
232234
long ret_conv_11 = ret[l];
233235
RouteHint ret_conv_11_hu_conv = null; if (ret_conv_11 < 0 || ret_conv_11 > 4096) { ret_conv_11_hu_conv = new RouteHint(null, ret_conv_11); }
234236
ret_conv_11_hu_conv.ptrs_to.add(this);

0 commit comments

Comments
 (0)