commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1436075 - in /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/trie: ByteKeyAnalyzer.java IntegerKeyAnalyzer.java LongKeyAnalyzer.java ShortKeyAnalyzer.java
Date Mon, 21 Jan 2013 01:37:52 GMT
Author: sebb
Date: Mon Jan 21 01:37:51 2013
New Revision: 1436075

URL: http://svn.apache.org/viewvc?rev=1436075&view=rev
Log:
Explicit unboxing

Modified:
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/trie/ByteKeyAnalyzer.java
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/trie/IntegerKeyAnalyzer.java
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/trie/LongKeyAnalyzer.java
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/trie/ShortKeyAnalyzer.java

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/trie/ByteKeyAnalyzer.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/trie/ByteKeyAnalyzer.java?rev=1436075&r1=1436074&r2=1436075&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/trie/ByteKeyAnalyzer.java
(original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/trie/ByteKeyAnalyzer.java
Mon Jan 21 01:37:51 2013
@@ -66,7 +66,7 @@ public class ByteKeyAnalyzer extends Abs
      * {@inheritDoc}
      */
     public boolean isBitSet(final Byte key, final int bitIndex, final int lengthInBits) {
-        return (key & mask(bitIndex)) != 0;
+        return (key.intValue() & mask(bitIndex)) != 0;
     }
 
     /**

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/trie/IntegerKeyAnalyzer.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/trie/IntegerKeyAnalyzer.java?rev=1436075&r1=1436074&r2=1436075&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/trie/IntegerKeyAnalyzer.java
(original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/trie/IntegerKeyAnalyzer.java
Mon Jan 21 01:37:51 2013
@@ -66,7 +66,7 @@ public class IntegerKeyAnalyzer extends 
      * {@inheritDoc}
      */
     public boolean isBitSet(final Integer key, final int bitIndex, final int lengthInBits)
{
-        return (key & mask(bitIndex)) != 0;
+        return (key.intValue() & mask(bitIndex)) != 0;
     }
 
     /**

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/trie/LongKeyAnalyzer.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/trie/LongKeyAnalyzer.java?rev=1436075&r1=1436074&r2=1436075&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/trie/LongKeyAnalyzer.java
(original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/trie/LongKeyAnalyzer.java
Mon Jan 21 01:37:51 2013
@@ -66,7 +66,7 @@ public class LongKeyAnalyzer extends Abs
      * {@inheritDoc}
      */
     public boolean isBitSet(final Long key, final int bitIndex, final int lengthInBits) {
-        return (key & mask(bitIndex)) != 0;
+        return (key.longValue() & mask(bitIndex)) != 0;
     }
 
     /**

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/trie/ShortKeyAnalyzer.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/trie/ShortKeyAnalyzer.java?rev=1436075&r1=1436074&r2=1436075&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/trie/ShortKeyAnalyzer.java
(original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/trie/ShortKeyAnalyzer.java
Mon Jan 21 01:37:51 2013
@@ -66,7 +66,7 @@ public class ShortKeyAnalyzer implements
      * {@inheritDoc}
      */
     public boolean isBitSet(final Short key, final int bitIndex, final int lengthInBits)
{
-        return (key & mask(bitIndex)) != 0;
+        return (key.intValue() & mask(bitIndex)) != 0;
     }
 
     /**



Mime
View raw message