-
Notifications
You must be signed in to change notification settings - Fork 38
Fix errorprone and Javadoc warnings #2614
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
base: master
Are you sure you want to change the base?
Conversation
@brfrn169 san, @komamitsu san, @Torch3333 san, I have made a change to use Also there are |
Removed a string format constant to remove a warning in bfad6d3.
|
@inv-jishnu I found one more warning:
|
@@ -4,6 +4,7 @@ | |||
import lombok.Value; | |||
|
|||
/** * The scan range which is used in data export scan filtering */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** * The scan range which is used in data export scan filtering */ | |
/** The scan range which is used in data export scan filtering. */ |
@@ -4,7 +4,8 @@ | |||
import lombok.Builder; | |||
import lombok.Data; | |||
|
|||
/** * Import data chunk data */ | |||
/** * Import data chunk data. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** * Import data chunk data. */ | |
/** Import data chunk data. */ |
@@ -6,7 +6,8 @@ | |||
import lombok.Builder; | |||
import lombok.Data; | |||
|
|||
/** * A DTO to store import data chunk details */ | |||
/** * A DTO to store import data chunk details. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** * A DTO to store import data chunk details. */ | |
/** A DTO to store import data chunk details. */ |
@@ -6,6 +6,7 @@ | |||
import lombok.Value; | |||
|
|||
/** Transaction batch details */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** Transaction batch details */ | |
/** Transaction batch details. */ |
@@ -8,6 +8,7 @@ | |||
import lombok.Value; | |||
|
|||
/** Transaction batch result */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** Transaction batch result */ | |
/** Transaction batch result. */ |
gradle/spotbugs-exclude.xml
Outdated
@@ -37,7 +37,7 @@ | |||
</Match> | |||
<!-- Ignore mutable object exposure warnings(caused by Lombok) for all classes in dataloader.core --> | |||
<Match> | |||
<Bug pattern="EI_EXPOSE_REP,EI_EXPOSE_REP2,CT_CONSTRUCTOR_THROW"/> | |||
<Bug pattern="EI_EXPOSE_REP,EI_EXPOSE_REP2,CT_CONSTRUCTOR_THROW,SAME_NAME_BUT_DIFFERENT"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CT_CONSTRUCTOR_THROW
and SAME_NAME_BUT_DIFFERENT
are already excluded globally:
<Bug pattern="EI_EXPOSE_REP,EI_EXPOSE_REP2,CT_CONSTRUCTOR_THROW,SAME_NAME_BUT_DIFFERENT"/> | |
<Bug pattern="EI_EXPOSE_REP,EI_EXPOSE_REP2"/> |
@@ -107,7 +108,7 @@ public void put( | |||
|
|||
Put put = createPutWith(namespace, table, partitionKey, clusteringKey, columns); | |||
try { | |||
transaction.put(put); | |||
transaction.mutate(Collections.singletonList(put)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don’t think we should use mutate()
for a single mutation. Please continue using put()
for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@brfrn169 san,
I will revert this change.
Thank you.
@inv-jishnu I also found many Javadoc errors and warnings. Please handle them in a separate PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
This reverts commit 0f03536.
@brfrn169 san, Apart from |
@inv-jishnu Did you also mean Javadoc warnings? I still see many warnings like Also, regarding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you.
On my side I don't see any errors or warnings anymore when I build it with Java 8. I do get a lot more warnings when building with Java 17 selected though but probably can be ignored for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you!
Description
This PR fixes error prone and java doc warnings and renamed logger param used from
LOGGER
tologger
.This PR was created based on following feedback from PR #2591.
Related issues and/or PRs
Changes made
I have made the following changes
LOGGER
tologger
assert
toassertThat
SAME_NAME_BUT_DIFFERENT
to ignore patterns that need to be ignored for data loader core projectSameNameButDifferent
andMissingSummary
and a few more.Checklist
Additional notes (optional)
NA
Release notes
Fix warnings for java doc and error prone