mirror of https://github.com/apache/lucene.git
javadoc spelling cleanup
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@550264 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b72286589d
commit
4e0e8f6707
|
@ -134,8 +134,8 @@ public class SystemInfoHandler extends RequestHandlerBase
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Try to run a getter function. This is usefull because java 1.6 has a few extra
|
* Try to run a getter function. This is useful because java 1.6 has a few extra
|
||||||
* usefull functions on the <code>OperatingSystemMXBean</code>
|
* useful functions on the <code>OperatingSystemMXBean</code>
|
||||||
*
|
*
|
||||||
* If you are running a sun jvm, there are nice functions in:
|
* If you are running a sun jvm, there are nice functions in:
|
||||||
* UnixOperatingSystemMXBean and com.sun.management.OperatingSystemMXBean
|
* UnixOperatingSystemMXBean and com.sun.management.OperatingSystemMXBean
|
||||||
|
@ -144,7 +144,7 @@ public class SystemInfoHandler extends RequestHandlerBase
|
||||||
*/
|
*/
|
||||||
static void addGetterIfAvaliable( Object obj, String getter, NamedList<Object> info )
|
static void addGetterIfAvaliable( Object obj, String getter, NamedList<Object> info )
|
||||||
{
|
{
|
||||||
// This is a 1.6 functon, so lets do a little magic to *try* to make it work
|
// This is a 1.6 function, so lets do a little magic to *try* to make it work
|
||||||
try {
|
try {
|
||||||
String n = Character.toUpperCase( getter.charAt(0) ) + getter.substring( 1 );
|
String n = Character.toUpperCase( getter.charAt(0) ) + getter.substring( 1 );
|
||||||
Method m = obj.getClass().getMethod( "get" + n );
|
Method m = obj.getClass().getMethod( "get" + n );
|
||||||
|
@ -158,7 +158,7 @@ public class SystemInfoHandler extends RequestHandlerBase
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Utility function to execute a funciton
|
* Utility function to execute a function
|
||||||
*/
|
*/
|
||||||
private static String execute( String cmd )
|
private static String execute( String cmd )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue