You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by fs...@apache.org on 2016/03/05 20:42:51 UTC
svn commit: r1733758 -
/jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java
Author: fschumacher
Date: Sat Mar 5 19:42:51 2016
New Revision: 1733758
URL: http://svn.apache.org/viewvc?rev=1733758&view=rev
Log:
Add javadoc and a bit of spacepolice.
Modified:
jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java
Modified: jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java?rev=1733758&r1=1733757&r2=1733758&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java Sat Mar 5 19:42:51 2016
@@ -1334,7 +1334,7 @@ public class JMeterUtils implements Unit
}
}
}
-
+
/**
* Help GC by triggering GC and finalization
*/
@@ -1342,7 +1342,7 @@ public class JMeterUtils implements Unit
System.gc();
System.runFinalization();
}
-
+
/**
* Hack to make matcher clean the two internal buffers it keeps in memory which size is equivalent to
* the unzipped page size
@@ -1358,23 +1358,26 @@ public class JMeterUtils implements Unit
// NOOP
}
}
-
- /*
- * HiDPI mode
+
+ /**
+ * Provide info, whether we run in HiDPI mode
+ * @return {@code true} if we run in HiDPI mode, {@code false} otherwise
*/
public static boolean getHiDPIMode() {
return JMeterUtils.getPropDefault("jmeter.hidpi.mode", false); // $NON-NLS-1$
}
- /*
- * HiDPI scale factor
+ /**
+ * Provide info about the HiDPI scale factor
+ * @return the factor by which we should scale elements for HiDPI mode
*/
public static double getHiDPIScaleFactor() {
return Double.valueOf(JMeterUtils.getPropDefault("jmeter.hidpi.scale.factor", "1.0")); // $NON-NLS-1$ $NON-NLS-2$
}
-
- /*
- * HiDPI mode management
+
+ /**
+ * Apply HiDPI mode management to {@link JTable}
+ * @param table the {@link JTable} which should be adapted for HiDPI mode
*/
public static void applyHiDPI(JTable table) {
if (JMeterUtils.getHiDPIMode()) {