ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [03/50] incubator-ignite git commit: #ignite-201: Fix examples.
Date Tue, 10 Feb 2015 13:02:00 GMT
#ignite-201: Fix examples.


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

Branch: refs/heads/ignite-204
Commit: 5ac5dc66adde852cc93a85b42041ef633f0295f9
Parents: d8ae54c
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Mon Feb 9 16:38:46 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Mon Feb 9 16:38:46 2015 +0300

----------------------------------------------------------------------
 .../apache/ignite/examples/datastructures/IgniteQueueExample.java  | 2 +-
 .../apache/ignite/examples/datastructures/IgniteSetExample.java    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/5ac5dc66/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteQueueExample.java
----------------------------------------------------------------------
diff --git a/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteQueueExample.java
b/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteQueueExample.java
index f0131bf..6cdfd15 100644
--- a/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteQueueExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteQueueExample.java
@@ -153,7 +153,7 @@ public class IgniteQueueExample {
         try {
             queue.poll();
         }
-        catch (IgniteException expected) {
+        catch (IllegalStateException expected) {
             System.out.println("Expected exception - " + expected.getMessage());
         }
     }

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/5ac5dc66/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteSetExample.java
----------------------------------------------------------------------
diff --git a/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteSetExample.java
b/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteSetExample.java
index c82e708..2976ccb 100644
--- a/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteSetExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteSetExample.java
@@ -149,7 +149,7 @@ public class IgniteSetExample {
         try {
             set.contains("1");
         }
-        catch (IgniteException expected) {
+        catch (IllegalStateException expected) {
             System.out.println("Expected exception - " + expected.getMessage());
         }
     }


Mime
View raw message