Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-141 d2b13535a -> f26b0e82a


IGNITE-141 - Marshallers refactoring


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

Branch: refs/heads/ignite-141
Commit: f26b0e82a23024cd83a079e0e09ff63bd5a7daef
Parents: d2b1353
Author: Valentin Kulichenko <vkuliche...@gridgain.com>
Authored: Mon Mar 2 19:34:23 2015 -0800
Committer: Valentin Kulichenko <vkuliche...@gridgain.com>
Committed: Mon Mar 2 19:34:23 2015 -0800

----------------------------------------------------------------------
 .../ignite/marshaller/MarshallerContextTestImpl.java    | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/f26b0e82/modules/core/src/test/java/org/apache/ignite/marshaller/MarshallerContextTestImpl.java
----------------------------------------------------------------------
diff --git 
a/modules/core/src/test/java/org/apache/ignite/marshaller/MarshallerContextTestImpl.java
 
b/modules/core/src/test/java/org/apache/ignite/marshaller/MarshallerContextTestImpl.java
index fba18a8..095ee3f 100644
--- 
a/modules/core/src/test/java/org/apache/ignite/marshaller/MarshallerContextTestImpl.java
+++ 
b/modules/core/src/test/java/org/apache/ignite/marshaller/MarshallerContextTestImpl.java
@@ -43,14 +43,16 @@ public class MarshallerContextTestImpl implements 
MarshallerContext {
             String clsName;
 
             while ((clsName = rdr.readLine()) != null) {
-                Class cls = U.forName(clsName, ldr);
+                try {
+                    Class cls = U.forName(clsName, ldr);
 
-                map.put(cls.getName().hashCode(), cls);
+                    map.put(cls.getName().hashCode(), cls);
+                }
+                catch (ClassNotFoundException ignored) {
+                    // No-op.
+                }
             }
         }
-        catch (ClassNotFoundException ignored) {
-            // No-op.
-        }
         catch (IOException e) {
             throw new IllegalStateException("Failed to initialize marshaller 
context.", e);
         }

Reply via email to