You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@edgent.apache.org by dl...@apache.org on 2017/11/21 21:45:15 UTC

[4/9] incubator-edgent-samples git commit: fix warning in sample TempSensor.java

fix warning in sample TempSensor.java


Project: http://git-wip-us.apache.org/repos/asf/incubator-edgent-samples/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-edgent-samples/commit/5fc0c4f4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-edgent-samples/tree/5fc0c4f4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-edgent-samples/diff/5fc0c4f4

Branch: refs/heads/develop
Commit: 5fc0c4f46ba33dac4a61c590da926e1e66d0c1cf
Parents: 163bcb3
Author: Dale LaBossiere <dl...@us.ibm.com>
Authored: Tue Nov 21 12:33:30 2017 -0500
Committer: Dale LaBossiere <dl...@us.ibm.com>
Committed: Tue Nov 21 12:33:30 2017 -0500

----------------------------------------------------------------------
 .../main/java/org/apache/edgent/samples/topology/TempSensor.java    | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-edgent-samples/blob/5fc0c4f4/topology/src/main/java/org/apache/edgent/samples/topology/TempSensor.java
----------------------------------------------------------------------
diff --git a/topology/src/main/java/org/apache/edgent/samples/topology/TempSensor.java b/topology/src/main/java/org/apache/edgent/samples/topology/TempSensor.java
index d9b8a40..1c93b30 100644
--- a/topology/src/main/java/org/apache/edgent/samples/topology/TempSensor.java
+++ b/topology/src/main/java/org/apache/edgent/samples/topology/TempSensor.java
@@ -27,6 +27,7 @@ import org.apache.edgent.function.Supplier;
  * Every time get() is called, TempSensor generates a temperature reading.
  */
 public class TempSensor implements Supplier<Double> {
+    private static final long serialVersionUID = 1L;
     double currentTemp = 65.0;
     Random rand;