You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2011/10/11 09:09:19 UTC
svn commit: r1181639 - in /commons/sandbox/runtime/trunk/src/main:
java/org/apache/commons/runtime/io/Utils.java
test/org/apache/commons/runtime/TestUnsafe.java
Author: mturk
Date: Tue Oct 11 07:09:18 2011
New Revision: 1181639
URL: http://svn.apache.org/viewvc?rev=1181639&view=rev
Log:
Use less cryptic method name
Modified:
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Utils.java
commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestUnsafe.java
Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Utils.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Utils.java?rev=1181639&r1=1181638&r2=1181639&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Utils.java (original)
+++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Utils.java Tue Oct 11 07:09:18 2011
@@ -34,7 +34,7 @@ public final class Utils
/**
* Get native file descriptor.
*/
- public static int getDescriptor(FileDescriptor fd)
+ public static int getNativeFileDescriptor(FileDescriptor fd)
throws NullPointerException
{
if (fd == null)
@@ -45,7 +45,7 @@ public final class Utils
/**
* Get native file handle.
*/
- public static long getHandle(FileDescriptor fd)
+ public static long getNativeFileHandle(FileDescriptor fd)
throws NullPointerException
{
if (fd == null)
Modified: commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestUnsafe.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestUnsafe.java?rev=1181639&r1=1181638&r2=1181639&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestUnsafe.java (original)
+++ commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestUnsafe.java Tue Oct 11 07:09:18 2011
@@ -84,8 +84,8 @@ public class TestUnsafe extends Assert
public void nativeFileDescriptor()
throws Exception
{
- int fd = Utils.getDescriptor(FileDescriptor.out);
- long fh = Utils.getHandle(FileDescriptor.out);
+ int fd = Utils.getNativeFileDescriptor(FileDescriptor.out);
+ long fh = Utils.getNativeFileHandle(FileDescriptor.out);
assertTrue(0 != (fd + fh));
}