Skip to content

Commit

Permalink
Move class 'MemoryUsageReport' to be near its usage
Browse files Browse the repository at this point in the history
  • Loading branch information
DanVanAtta committed Dec 14, 2020
1 parent 35533b2 commit 52b9233
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
@@ -1,13 +1,13 @@
package org.triplea.debug.console.window;
package org.triplea.debug.error.reporting;

import lombok.experimental.UtilityClass;

/** Provides a method to return a human-readable output of the JVMs memory usage status. */
@UtilityClass
public final class MemoryUsageReport {
final class MemoryUsageReport {

/** Returns a message containing information about current memory usage. */
public static String getMemory() {
static String getMemory() {
System.gc();
System.runFinalization();
System.gc();
Expand Down
Expand Up @@ -8,7 +8,6 @@
import javax.annotation.Nonnull;
import lombok.Builder;
import org.triplea.debug.LoggerRecord;
import org.triplea.debug.console.window.MemoryUsageReport;
import org.triplea.debug.error.reporting.formatting.ErrorReportBodyFormatter;
import org.triplea.debug.error.reporting.formatting.ErrorReportTitleFormatter;
import org.triplea.http.client.error.report.ErrorReportRequest;
Expand Down

0 comments on commit 52b9233

Please sign in to comment.