Skip to content

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

Merged
benoitf merged 2 commits into
che6from
remove-unused-code
Oct 25, 2017
Merged

Remove unused SystemInfo attributes (cpu, freeMemory, totalMemory) #6946
benoitf merged 2 commits into
che6from
remove-unused-code

Conversation

@benoitf

@benoitf benoitf commented Oct 24, 2017

Copy link
Copy Markdown
Contributor

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 requested a review from skabashnyuk as a code owner October 24, 2017 09:37
@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

benoitf commented Oct 24, 2017

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown

@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.

3 participants