[
https://issues.apache.org/jira/browse/IGNITE-26391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vyacheslav Koptilin updated IGNITE-26391:
-----------------------------------------
Description:
{code:java}
public class PartitionWithConsistencyToken {
...
/** Enlistment consistency token. */
@IgniteToStringInclude private final long enlistmentConsistencyToken;
/**
* Constructor.
*
* @param partId partition number
* @param enlistmentConsistencyToken Enlistment consistency token.
*/
public PartitionWithConsistencyToken(int partId, Long
enlistmentConsistencyToken) {
this.partId = partId;
this.enlistmentConsistencyToken = enlistmentConsistencyToken;
}{code}
The `enlistmentConsistencyToken` is always long and cannot be `null`. Need to
change `Long` to `long` to avoid boxing/unboxing.
was:
{code:java}
public class PartitionWithConsistencyToken {
...
/** Enlistment consistency token. */
@IgniteToStringInclude private final long enlistmentConsistencyToken;
/**
* Constructor.
*
* @param partId partition number
* @param enlistmentConsistencyToken Enlistment consistency token.
*/
public PartitionWithConsistencyToken(int partId, Long
enlistmentConsistencyToken) {
this.partId = partId;
this.enlistmentConsistencyToken = enlistmentConsistencyToken;
}{code}
The `enlistmentConsistencyToken` is always long and cannot be `null`. Need to
change `Long` to `long` to avoid boxing/unboxing.
> Change type of enlistmentConsistencyToken to long to avoid redundant
> boxing/unboxing
> ------------------------------------------------------------------------------------
>
> Key: IGNITE-26391
> URL: https://issues.apache.org/jira/browse/IGNITE-26391
> Project: Ignite
> Issue Type: Improvement
> Reporter: Vyacheslav Koptilin
> Assignee: Vyacheslav Koptilin
> Priority: Trivial
> Labels: ignite-3
> Fix For: 3.1
>
>
> {code:java}
> public class PartitionWithConsistencyToken {
> ...
> /** Enlistment consistency token. */
> @IgniteToStringInclude private final long enlistmentConsistencyToken;
> /**
> * Constructor.
> *
> * @param partId partition number
> * @param enlistmentConsistencyToken Enlistment consistency token.
> */
> public PartitionWithConsistencyToken(int partId, Long
> enlistmentConsistencyToken) {
> this.partId = partId;
> this.enlistmentConsistencyToken = enlistmentConsistencyToken;
> }{code}
> The `enlistmentConsistencyToken` is always long and cannot be `null`. Need to
> change `Long` to `long` to avoid boxing/unboxing.
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)