Author: kkolinko Date: Mon Aug 27 20:26:34 2012 New Revision: 1377831 URL: http://svn.apache.org/viewvc?rev=1377831&view=rev Log: Followup to r1377689 1. Cleanup removed property from systemprops.xml
2. Do not reference inaccessible class in Javadoc (With my setting of JRE="Execution environment JavaSE-1.7", Eclipse complained about this in red). 3. Perform boxing explicitly. Modified: tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java tomcat/trunk/webapps/docs/config/systemprops.xml Modified: tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java?rev=1377831&r1=1377830&r2=1377831&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java (original) +++ tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java Mon Aug 27 20:26:34 2012 @@ -220,7 +220,7 @@ public class JreMemoryLeakPreventionList /** * Sets the time that this listener will request for garbage-collection latency - * @see {@link sun.misc.GC#requestLatency(long)} + * @see {@code sun.misc.GC#requestLatency(long)} */ private long gcDaemonPeriod = Long.MAX_VALUE - 1; public long getGcDaemonPeriod() { @@ -308,7 +308,7 @@ public class JreMemoryLeakPreventionList Method method = clazz.getDeclaredMethod( "requestLatency", new Class[] {long.class}); - method.invoke(null, getGcDaemonPeriod()); + method.invoke(null, Long.valueOf(getGcDaemonPeriod())); } catch (ClassNotFoundException e) { if (System.getProperty("java.vendor").startsWith( "Sun")) { Modified: tomcat/trunk/webapps/docs/config/systemprops.xml URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/config/systemprops.xml?rev=1377831&r1=1377830&r2=1377831&view=diff ============================================================================== --- tomcat/trunk/webapps/docs/config/systemprops.xml (original) +++ tomcat/trunk/webapps/docs/config/systemprops.xml Mon Aug 27 20:26:34 2012 @@ -443,11 +443,6 @@ else the default value will be <code>false</code>.</p> </property> - <property name="org.apache.catalina.core. jreMemoryLeakPreventionGCDaemonPeriod"> - <p>The timeout period set when the leak prevention code triggers the GC Daemon.</p> - <p>If not specified, the default value of <code>Long.MAX_VALUE-1</code> will be used.</p> - </property> - </properties> </section> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org