Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INLONG-8459][DataProxy] Fix code scanning alert - Implicit narrowing conversion in compound assignment #8460

Merged
merged 1 commit into from
Jul 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ public abstract class PackProfile {
private final long dispatchTime;
private final long createTime = System.currentTimeMillis();
private final String uid;
protected int count = 0;
protected int size = 0;
protected long count = 0;
protected long size = 0;
protected final boolean enableRetryAfterFailure;
protected final int maxRetries;
protected int retries = 0;
Expand Down Expand Up @@ -96,7 +96,7 @@ public long getDispatchTime() {
*
* @return the count
*/
public int getCount() {
public long getCount() {
return count;
}

Expand All @@ -105,7 +105,7 @@ public int getCount() {
*
* @param count the count to set
*/
public void setCount(int count) {
public void setCount(long count) {
this.count = count;
}

Expand All @@ -114,7 +114,7 @@ public void setCount(int count) {
*
* @return the size
*/
public int getSize() {
public long getSize() {
return size;
}

Expand All @@ -123,7 +123,7 @@ public int getSize() {
*
* @param size the size to set
*/
public void setSize(int size) {
public void setSize(long size) {
this.size = size;
}

Expand Down