From 795daa41a54ef63bee0f534bf0f3f82113da7dfc Mon Sep 17 00:00:00 2001 From: "cheehau.lim" Date: Thu, 15 Oct 2015 19:32:22 +0800 Subject: [PATCH] =doc =per fixed a few typos from 'Unknow' to 'Unknown' --- .../java/code/docs/serialization/SerializationDocTest.java | 6 +++--- .../src/main/scala/akka/persistence/Persistence.scala | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/akka-docs/rst/java/code/docs/serialization/SerializationDocTest.java b/akka-docs/rst/java/code/docs/serialization/SerializationDocTest.java index 7696b2bb4e..fbe664d973 100644 --- a/akka-docs/rst/java/code/docs/serialization/SerializationDocTest.java +++ b/akka-docs/rst/java/code/docs/serialization/SerializationDocTest.java @@ -91,7 +91,7 @@ public class SerializationDocTest { else if (obj instanceof User) return USER_MANIFEST; else - throw new IllegalArgumentException("Unknow type: " + obj); + throw new IllegalArgumentException("Unknown type: " + obj); } // "toBinary" serializes the given object to an Array of Bytes @@ -103,7 +103,7 @@ public class SerializationDocTest { else if (obj instanceof User) return ((User) obj).name.getBytes(UTF_8); else - throw new IllegalArgumentException("Unknow type: " + obj); + throw new IllegalArgumentException("Unknown type: " + obj); } catch (UnsupportedEncodingException e) { throw new RuntimeException(e.getMessage(), e); } @@ -119,7 +119,7 @@ public class SerializationDocTest { else if (manifest.equals(USER_MANIFEST)) return new User(new String(bytes, UTF_8)); else - throw new IllegalArgumentException("Unknow manifest: " + manifest); + throw new IllegalArgumentException("Unknown manifest: " + manifest); } catch (UnsupportedEncodingException e) { throw new RuntimeException(e.getMessage(), e); } diff --git a/akka-persistence/src/main/scala/akka/persistence/Persistence.scala b/akka-persistence/src/main/scala/akka/persistence/Persistence.scala index 5453c098d4..03be4acba7 100644 --- a/akka-persistence/src/main/scala/akka/persistence/Persistence.scala +++ b/akka-persistence/src/main/scala/akka/persistence/Persistence.scala @@ -211,7 +211,7 @@ class Persistence(val system: ExtendedActorSystem) extends Extension { case ext if ext(system).actor == journalPluginActor ⇒ ext(system).config } match { case Some(conf) ⇒ conf - case None ⇒ throw new IllegalArgumentException(s"Unknow plugin actor $journalPluginActor") + case None ⇒ throw new IllegalArgumentException(s"Unknown plugin actor $journalPluginActor") } /**