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

Polishing pass after 2.0 -> 1.10 refactor #3152

Conversation

jonatan-ivanov
Copy link
Member

@jonatan-ivanov jonatan-ivanov commented Apr 28, 2022

  • Removed Checkstyle supressions were left for the binder module that no longer exists
  • Polish new additions in root build.gradle
  • Reverted formatting changes (indentation, import order)
  • MissingRequiredConfigurationException moved mistakenly
  • micrometer-core contained some unnecessary dependencies
  • Moved internal code to commons module (StringUtils, loggers, nullability annotations)

@jonatan-ivanov jonatan-ivanov changed the title Polishing pass after 2.x refactor Polishing pass after 2.0 -> 1.10 refactor Apr 28, 2022
@@ -37,9 +37,6 @@ def VERSIONS = [
'info.ganglia.gmetric4j:gmetric4j:latest.release',
'io.prometheus:simpleclient_common:latest.release',
'io.prometheus:simpleclient_pushgateway:latest.release',
// TODO support HttpTagsProvider variants based on Jakarta APIs?
// 'jakarta.servlet:jakarta.servlet-api:latest.release',
Copy link
Member

Choose a reason for hiding this comment

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

I never made an issue for this, and no one has requested it (that I can remember now), but maybe we can open something to see if there's any interest. An issue is a better place than a comment here, anyway.

@shakuzen shakuzen force-pushed the polishing-pass-after-2.x-refactor branch from 520d500 to 7b544ca Compare May 6, 2022 07:44
@shakuzen
Copy link
Member

shakuzen commented May 6, 2022

I managed to mess up the rebase and lose some changes made on main. I've hopefully recovered things with the last commit.

@shakuzen shakuzen merged commit b617100 into micrometer-metrics:main May 6, 2022
import io.micrometer.core.instrument.Meter;
import io.micrometer.core.lang.Nullable;

/**
* @author Jon Schneider
Copy link
Contributor

Choose a reason for hiding this comment

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

MissingSummary: A summary line is required on public/protected Javadocs.

(at-me in a reply with help or ignore)


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

}

/**
* @return The recorded {@link LogEvent} instances, in descending order by age (the
Copy link
Contributor

Choose a reason for hiding this comment

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

MissingSummary: A summary fragment is required; consider using the value of the @return block as a summary fragment instead.

Suggested change
* @return The recorded {@link LogEvent} instances, in descending order by age (the
*Returns the recorded {@link LogEvent} instances, in descending order by age (the

(at-me in a reply with help or ignore)


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

}

@Override
public boolean equals(Object o) {
Copy link
Contributor

Choose a reason for hiding this comment

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

EqualsGetClass: Prefer instanceof to getClass when implementing Object#equals.

Suggested change
public boolean equals(Object o) {
if (!(o instanceof LogEvent))

(at-me in a reply with help or ignore)


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

@jonatan-ivanov jonatan-ivanov deleted the polishing-pass-after-2.x-refactor branch May 6, 2022 19:59
shakuzen pushed a commit that referenced this pull request May 9, 2022
This got lost in a rebase gone bad with gh-3152. See original commit ea438e5 from gh-3148.
jonatan-ivanov added a commit to jonatan-ivanov/micrometer that referenced this pull request May 9, 2022
This got lost in a rebase gone bad with micrometer-metricsgh-3152. See original commit cf655e9
@jonatan-ivanov jonatan-ivanov restored the polishing-pass-after-2.x-refactor branch May 10, 2022 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants