edgent-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vdog...@apache.org
Subject [1/3] incubator-quarks git commit: Remove unnecessary null check.
Date Wed, 23 Mar 2016 20:50:26 GMT
Repository: incubator-quarks
Updated Branches:
  refs/heads/master 71870ca5b -> fff04b1d8


Remove unnecessary null check.


Project: http://git-wip-us.apache.org/repos/asf/incubator-quarks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-quarks/commit/fd1d7417
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quarks/tree/fd1d7417
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quarks/diff/fd1d7417

Branch: refs/heads/master
Commit: fd1d74174d1b2612789d1b09662f05834acf2bba
Parents: cf1c70d
Author: Cazen <Cazen@korea.com>
Authored: Sat Mar 19 11:34:28 2016 +0900
Committer: William C. Marshall <wcmarsha@us.ibm.com>
Committed: Mon Mar 21 16:48:20 2016 -0400

----------------------------------------------------------------------
 .../src/main/java/quarks/topology/spi/graph/ConnectorStream.java  | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-quarks/blob/fd1d7417/spi/topology/src/main/java/quarks/topology/spi/graph/ConnectorStream.java
----------------------------------------------------------------------
diff --git a/spi/topology/src/main/java/quarks/topology/spi/graph/ConnectorStream.java b/spi/topology/src/main/java/quarks/topology/spi/graph/ConnectorStream.java
index a97d2b0..73a88be 100644
--- a/spi/topology/src/main/java/quarks/topology/spi/graph/ConnectorStream.java
+++ b/spi/topology/src/main/java/quarks/topology/spi/graph/ConnectorStream.java
@@ -100,9 +100,6 @@ public class ConnectorStream<G extends Topology, T> extends AbstractTStream<G,
T
     public <E extends Enum<E>> EnumMap<E,TStream<T>> split(Class<E>
enumClass, Function<T, E> splitter) {
 
         E[] es = enumClass.getEnumConstants();
-        if(es == null) {
-            throw new IllegalArgumentException("Class object does not represent an enum type");
-        }
 
         List<TStream<T>> outputs = split(es.length, t -> {
             E split = splitter.apply(t);


Mime
View raw message