-
-
Notifications
You must be signed in to change notification settings - Fork 885
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
Specialize getHostName() #1008
Specialize getHostName() #1008
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1008 +/- ##
=========================================
Coverage 77.17% 77.17%
Complexity 2 2
=========================================
Files 23 23
Lines 1196 1196
Branches 154 154
=========================================
Hits 923 923
Misses 206 206
Partials 67 67 Continue to review full report at Codecov.
|
The idea here is that the first time you complete the change log you don't know the number of your pull request (you can try to guess by looking at the next sequential issue/pull request number) so you would do another commit to insert the number. When that document was originally written, the request was to use an "amend" commit to minimize the number of actual commits to the project. Since then, Github has added a "Squash and merge" option that combines all commits for a PR into one so there's no need to do an "amend" commit (but you're welcome to do so). |
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.
Great job, a few minor requests!
oshi-core/src/main/java/oshi/software/os/linux/LinuxNetworkParams.java
Outdated
Show resolved
Hide resolved
oshi-core/src/main/java/oshi/software/os/mac/MacNetworkParams.java
Outdated
Show resolved
Hide resolved
oshi-core/src/main/java/oshi/software/os/unix/freebsd/FreeBsdNetworkParams.java
Outdated
Show resolved
Hide resolved
oshi-core/src/main/java/oshi/software/os/unix/solaris/SolarisNetworkParams.java
Outdated
Show resolved
Hide resolved
oshi-core/src/main/java/oshi/software/os/mac/MacNetworkParams.java
Outdated
Show resolved
Hide resolved
4793455
to
5965051
Compare
This looks good! Ready to merge... I might make a few tweaks on the inheritance first, as I realized (belatedly) that we should just make the Did you want to make a changelog entry or are you good to go with this as is? |
oshi-core/src/main/java/oshi/software/os/unix/solaris/SolarisNetworkParams.java
Outdated
Show resolved
Hide resolved
oshi-core/src/main/java/oshi/software/os/unix/freebsd/FreeBsdNetworkParams.java
Outdated
Show resolved
Hide resolved
Looks good! I'll let the CI tests run and tweak the C library inheritance again and merge within the hour. Thanks for contributing to open source! |
I checked my code once again and found that 2 files don't have "NOSONAR" footnote while there is |
b4238f1
to
9197746
Compare
Fixes #1006
on windows, getHostName() uses Kernel32Util.getComputerName().
and on Mac, Linux, Solaris, and BSD it returns the value from JNA's LibC class method getHostName().
I have a question. contributing guide says "Update CHANGELOG Again" and I'm somewhat confused. Do I have to update changelog at the moment I made a pull request or when my pull request got merged?