Removed restriction annotation which is not needed with open JDK

This commit is contained in:
Luca Frosini 2019-12-13 10:19:52 +01:00
parent b206f4458f
commit 72f2ee3e15
1 changed files with 0 additions and 3 deletions

View File

@ -379,12 +379,9 @@ public class SmartgearResourcesTest extends ContextTest {
OperatingSystemMXBean mxbean = ManagementFactory OperatingSystemMXBean mxbean = ManagementFactory
.getOperatingSystemMXBean(); .getOperatingSystemMXBean();
@SuppressWarnings("restriction")
com.sun.management.OperatingSystemMXBean sunmxbean = (com.sun.management.OperatingSystemMXBean) mxbean; com.sun.management.OperatingSystemMXBean sunmxbean = (com.sun.management.OperatingSystemMXBean) mxbean;
@SuppressWarnings("restriction")
long freeMemory = sunmxbean.getFreePhysicalMemorySize() / 1048576; // in long freeMemory = sunmxbean.getFreePhysicalMemorySize() / 1048576; // in
// MB // MB
@SuppressWarnings("restriction")
long totalMemory = sunmxbean.getTotalPhysicalMemorySize() / 1048576; // in long totalMemory = sunmxbean.getTotalPhysicalMemorySize() / 1048576; // in
// MB // MB