hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r1556694 - in /hama/trunk: commons/src/main/java/org/apache/hama/commons/io/KeyValueWritable.java ml/src/main/java/org/apache/hama/ml/perception/SmallMultiLayerPerceptron.java
Date Thu, 09 Jan 2014 01:25:08 GMT
Author: edwardyoon
Date: Thu Jan  9 01:25:08 2014
New Revision: 1556694

URL: http://svn.apache.org/r1556694
Log:
add suppress annotations

Modified:
    hama/trunk/commons/src/main/java/org/apache/hama/commons/io/KeyValueWritable.java
    hama/trunk/ml/src/main/java/org/apache/hama/ml/perception/SmallMultiLayerPerceptron.java

Modified: hama/trunk/commons/src/main/java/org/apache/hama/commons/io/KeyValueWritable.java
URL: http://svn.apache.org/viewvc/hama/trunk/commons/src/main/java/org/apache/hama/commons/io/KeyValueWritable.java?rev=1556694&r1=1556693&r2=1556694&view=diff
==============================================================================
--- hama/trunk/commons/src/main/java/org/apache/hama/commons/io/KeyValueWritable.java (original)
+++ hama/trunk/commons/src/main/java/org/apache/hama/commons/io/KeyValueWritable.java Thu
Jan  9 01:25:08 2014
@@ -29,6 +29,7 @@ import org.apache.hadoop.io.WritableComp
  * @param <K> the class of key
  * @param <V> the class of value
  */
+@SuppressWarnings("rawtypes")
 public class KeyValueWritable<K extends WritableComparable, V extends WritableComparable>
     implements WritableComparable<KeyValueWritable<K, V>> {
 
@@ -80,6 +81,7 @@ public class KeyValueWritable<K extends 
     return result;
   }
 
+  @SuppressWarnings("unchecked")
   @Override
   public boolean equals(Object obj) {
     if (this == obj) {
@@ -111,6 +113,7 @@ public class KeyValueWritable<K extends 
     return true;
   }
 
+  @SuppressWarnings("unchecked")
   @Override
   public int compareTo(KeyValueWritable<K, V> obj) {
     int cmp = key.compareTo(obj.key);

Modified: hama/trunk/ml/src/main/java/org/apache/hama/ml/perception/SmallMultiLayerPerceptron.java
URL: http://svn.apache.org/viewvc/hama/trunk/ml/src/main/java/org/apache/hama/ml/perception/SmallMultiLayerPerceptron.java?rev=1556694&r1=1556693&r2=1556694&view=diff
==============================================================================
--- hama/trunk/ml/src/main/java/org/apache/hama/ml/perception/SmallMultiLayerPerceptron.java
(original)
+++ hama/trunk/ml/src/main/java/org/apache/hama/ml/perception/SmallMultiLayerPerceptron.java
Thu Jan  9 01:25:08 2014
@@ -324,7 +324,7 @@ public final class SmallMultiLayerPercep
     double[] curLayerOutput = outputCache.get(curLayerIdx);
     double[] prevLayerOutput = outputCache.get(prevLayerIdx);
 
-    DenseDoubleMatrix prevWeightUpdateMatrix = this.prevWeightUpdateMatrices[curLayerIdx
- 1];
+    // DenseDoubleMatrix prevWeightUpdateMatrix = this.prevWeightUpdateMatrices[curLayerIdx
- 1];
     // for each neuron j in nextLayer, calculate the delta
     for (int j = 0; j < delta.length; ++j) {
       // aggregate delta from next layer
@@ -402,6 +402,7 @@ public final class SmallMultiLayerPercep
     this.readFromModel();
   }
 
+  @SuppressWarnings("rawtypes")
   @Override
   public void readFields(DataInput input) throws IOException {
     this.MLPType = WritableUtils.readString(input);



Mime
View raw message