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 2009/07/03 11:36:36 UTC

svn commit: r790836 - in /commons/sandbox/runtime/trunk/src: main/java/org/apache/commons/runtime/ test/org/apache/commons/runtime/

Author: mturk
Date: Fri Jul  3 09:36:34 2009
New Revision: 790836

URL: http://svn.apache.org/viewvc?rev=790836&view=rev
Log:
Do not capitalize isXXXX

Modified:
    commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/ExecutableMemory.java
    commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/NativePointer.java
    commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Pointer.java
    commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Pointer32.java
    commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Pointer64.java
    commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestMemory.java
    commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestPrivate.java

Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/ExecutableMemory.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/ExecutableMemory.java?rev=790836&r1=790835&r2=790836&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/ExecutableMemory.java (original)
+++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/ExecutableMemory.java Fri Jul  3 09:36:34 2009
@@ -66,7 +66,7 @@
     protected static Pointer getExecutablePage(Pointer src)
         throws NullPointerException
     {
-        if (src == null || src.IsNull())
+        if (src == null || src.isNull())
             throw new NullPointerException();
         synchronized (ExecutableMemory.class) {
             return exec0(src);

Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/NativePointer.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/NativePointer.java?rev=790836&r1=790835&r2=790836&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/NativePointer.java (original)
+++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/NativePointer.java Fri Jul  3 09:36:34 2009
@@ -99,14 +99,14 @@
      * Check if the pointer is valid
      * @return true if the internal pointer is not {@code NULL}.
      */
-    public abstract boolean IsNull();
+    public abstract boolean isNull();
 
     /**
      * Check if the pointer is to be used by reference
      * @return true if the pointer has {@code ByReference} annotation.
      * @see ByReference
      */
-    public final boolean IsByReference()
+    public final boolean isByReference()
     {
         return getClass().isAnnotationPresent(ByReference.class);
     }

Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Pointer.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Pointer.java?rev=790836&r1=790835&r2=790836&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Pointer.java (original)
+++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Pointer.java Fri Jul  3 09:36:34 2009
@@ -57,14 +57,14 @@
      * Check if the pointer is valid
      * @return true if the internal pointer is not {@code NULL}.
      */
-    public boolean IsNull();
+    public boolean isNull();
 
     /**
      * Check if the pointer is to be used by reference
      * @return true if the pointer has {@code ByReference} annotation.
      * @see ByReference
      */
-    public boolean IsByReference();
+    public boolean isByReference();
 
     /**
      * Compares this {@code Pointer} to the specified object.

Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Pointer32.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Pointer32.java?rev=790836&r1=790835&r2=790836&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Pointer32.java (original)
+++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Pointer32.java Fri Jul  3 09:36:34 2009
@@ -60,7 +60,7 @@
            return false;
     }
 
-    public boolean IsNull()
+    public boolean isNull()
     {
         return POINTER == 0;
     }

Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Pointer64.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Pointer64.java?rev=790836&r1=790835&r2=790836&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Pointer64.java (original)
+++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Pointer64.java Fri Jul  3 09:36:34 2009
@@ -58,7 +58,7 @@
            return false;
     }
 
-    public boolean IsNull()
+    public boolean isNull()
     {
         return POINTER == 0L;
     }

Modified: commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestMemory.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestMemory.java?rev=790836&r1=790835&r2=790836&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestMemory.java (original)
+++ commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestMemory.java Fri Jul  3 09:36:34 2009
@@ -58,7 +58,7 @@
     {
         Pointer p = Memory.malloc();
         assertNotNull("Pointer", p);
-        assertTrue("Not null", p.IsNull());
+        assertTrue("Not null", p.isNull());
         try {
             p.free();
             fail("Not RuntimeException");
@@ -128,7 +128,7 @@
     {
         Pointer p = Memory.malloc();
         assertNotNull("Pointer", p);
-		assertTrue("ByReference", p.IsByReference());
+		assertTrue("ByReference", p.isByReference());
     }
 
     public void testExecutableMalloc()
@@ -337,7 +337,7 @@
     public void testPointerNull()
         throws Throwable
     {
-        assertTrue("Not null", Pointer.NULL.IsNull());
+        assertTrue("Not null", Pointer.NULL.isNull());
 
     }
 

Modified: commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestPrivate.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestPrivate.java?rev=790836&r1=790835&r2=790836&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestPrivate.java (original)
+++ commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestPrivate.java Fri Jul  3 09:36:34 2009
@@ -289,7 +289,7 @@
     {
         Pointer p = test017(0xcafebabe);
         assertNotNull("Pointer", p);
-        assertFalse("IsNull", p.IsNull());
+        assertFalse("IsNull", p.isNull());
         p.free();
         p = null;
         System.gc();