@@ -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 );
0 commit comments