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

Remove unused SystemInfo attributes (cpu, freeMemory, totalMemory) #6946

Merged
merged 2 commits into from Oct 25, 2017

Conversation

benoitf
Copy link
Contributor

@benoitf benoitf commented Oct 24, 2017

What does this PR do?

In Java9, relying on "internal fields" of classes is not permitted by default. Only public methods should be used.
The SystemInfo class is relying on "internal specific JDK" to get some cpu and memory attributes.

We could delete the JDK implementation and only uses the "Unix" implementation in the class but as it seems this code is never used, I would propose to remove it entirely.

What issues does this PR fix or reference?

#5326

Release Notes

N/A

Docs PR

N/A

Change-Id: I41bd108ce4b2af15693d57a5fa0c72caab932289
Signed-off-by: Florent BENOIT fbenoit@redhat.com

Change-Id: I41bd108ce4b2af15693d57a5fa0c72caab932289
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
@benoitf benoitf self-assigned this Oct 24, 2017
@benoitf benoitf added status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. target/che6 kind/task Internal things, technical debt, and to-do tasks to be performed. labels Oct 24, 2017
@benoitf
Copy link
Contributor Author

benoitf commented Oct 24, 2017

as discussed on mattermost, some delay is required to ensure it's not used

Change-Id: Icb2f6982bd31b8c6161c035827590286438e04f3
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
@eclipse-che eclipse-che deleted a comment from codenvy-ci Oct 24, 2017
@codenvy-ci
Copy link

@benoitf benoitf changed the title Remove SystemInfo (cpu, freeMemory, totalMemory) attributes Remove unused SystemInfo attributes (cpu, freeMemory, totalMemory) Oct 25, 2017
@benoitf benoitf merged commit c7d34fb into che6 Oct 25, 2017
@benoitf benoitf deleted the remove-unused-code branch October 25, 2017 08:13
@benoitf benoitf removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Oct 25, 2017
@benoitf benoitf added this to the 6.0.0-M1 milestone Oct 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/task Internal things, technical debt, and to-do tasks to be performed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants