Skip to content

Bump errorProneVersion from 2.29.2 to 2.30.0 - #3835

Merged
Helen (heyams) merged 8 commits into
mainfrom
dependabot/gradle/errorProneVersion-2.30.0
Aug 12, 2024
Merged

Bump errorProneVersion from 2.29.2 to 2.30.0#3835
Helen (heyams) merged 8 commits into
mainfrom
dependabot/gradle/errorProneVersion-2.30.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 12, 2024

Copy link
Copy Markdown
Contributor

Bumps errorProneVersion from 2.29.2 to 2.30.0.
Updates com.google.errorprone:error_prone_annotations from 2.29.2 to 2.30.0

Release notes

Sourced from com.google.errorprone:error_prone_annotations's releases.

Error Prone 2.30.0

New checks:

Closed issues: #632, #4487

Full changelog: google/error-prone@v2.29.2...v2.30.0

Commits
  • 5ada179 Release Error Prone 2.30.0
  • af175b0 Don't fire the CanIgnoreReturnValueSuggester for `dagger.producers.Producti...
  • ba8f9a2 Do not update getters that override methods from a superclass.
  • a706e8d Add ability to suppress warning for the entire AutoValue class
  • 86df5cf Convert some simple blocks to return switches using yield
  • 474554a Remove // fall out comments, which are sometimes used to document an empty ...
  • ac7ebf5 Handle var in MustBeClosedChecker
  • ccd3ca6 Add handling of toBuilder()
  • d887307 Omit some unnecessary break statements when translating to -> switches
  • fe07236 Add Error Prone check for unnecessary boxed types in AutoValue classes.
  • Additional commits viewable in compare view

Updates com.google.errorprone:error_prone_core from 2.29.2 to 2.30.0

Release notes

Sourced from com.google.errorprone:error_prone_core's releases.

Error Prone 2.30.0

New checks:

Closed issues: #632, #4487

Full changelog: google/error-prone@v2.29.2...v2.30.0

Commits
  • 5ada179 Release Error Prone 2.30.0
  • af175b0 Don't fire the CanIgnoreReturnValueSuggester for `dagger.producers.Producti...
  • ba8f9a2 Do not update getters that override methods from a superclass.
  • a706e8d Add ability to suppress warning for the entire AutoValue class
  • 86df5cf Convert some simple blocks to return switches using yield
  • 474554a Remove // fall out comments, which are sometimes used to document an empty ...
  • ac7ebf5 Handle var in MustBeClosedChecker
  • ccd3ca6 Add handling of toBuilder()
  • d887307 Omit some unnecessary break statements when translating to -> switches
  • fe07236 Add Error Prone check for unnecessary boxed types in AutoValue classes.
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps `errorProneVersion` from 2.29.2 to 2.30.0.

Updates `com.google.errorprone:error_prone_annotations` from 2.29.2 to 2.30.0
- [Release notes](https://github.com/google/error-prone/releases)
- [Commits](google/error-prone@v2.29.2...v2.30.0)

Updates `com.google.errorprone:error_prone_core` from 2.29.2 to 2.30.0
- [Release notes](https://github.com/google/error-prone/releases)
- [Commits](google/error-prone@v2.29.2...v2.30.0)

---
updated-dependencies:
- dependency-name: com.google.errorprone:error_prone_annotations
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: com.google.errorprone:error_prone_core
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Aug 12, 2024
Set<ObjectName> objects = server.queryNames(new ObjectName(objectName), null);
if (objects.isEmpty()) {
String errorMsg = String.format("Cannot find object name '%s'", objectName);
String errorMsg = String.format(Locale.ROOT, "Cannot find object name '%s'", objectName);

@trask Trask Stalnaker (trask) Aug 12, 2024

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just fyi, I usually replace this type of String.format usage with string concatenation, similar to upstream: open-telemetry/opentelemetry-java#4887 (comment)

Map<String, String> io =
FileUtil.getKeyValueMapFromFile(String.format(ProcPath.PID_IO, processId), ":");
FileUtil.getKeyValueMapFromFile(
String.format(Locale.ROOT, ProcPath.PID_IO, processId), ":");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is better to use string.format. pattern is inside PID_IO constant.

Comment on lines +110 to +114
sb.append(String.format(Locale.ROOT, "%02d.", days));
}
sb.append(String.format("%02d:%02d:%02d", hours, minutes, seconds));
sb.append(String.format(Locale.ROOT, "%02d:%02d:%02d", hours, minutes, seconds));
if (milliseconds > 0) {
sb.append(String.format(".%03d0000", milliseconds));
sb.append(String.format(Locale.ROOT, ".%03d0000", milliseconds));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here.. it's better to using string.format to keep number of digits

@heyams
Helen (heyams) merged commit eee700d into main Aug 12, 2024
@heyams
Helen (heyams) deleted the dependabot/gradle/errorProneVersion-2.30.0 branch August 12, 2024 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file java Pull requests that update Java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants