=doc =per fixed a few typos from 'Unknow' to 'Unknown'
This commit is contained in:
parent
5bc6783557
commit
795daa41a5
2 changed files with 4 additions and 4 deletions
|
|
@ -91,7 +91,7 @@ public class SerializationDocTest {
|
||||||
else if (obj instanceof User)
|
else if (obj instanceof User)
|
||||||
return USER_MANIFEST;
|
return USER_MANIFEST;
|
||||||
else
|
else
|
||||||
throw new IllegalArgumentException("Unknow type: " + obj);
|
throw new IllegalArgumentException("Unknown type: " + obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
// "toBinary" serializes the given object to an Array of Bytes
|
// "toBinary" serializes the given object to an Array of Bytes
|
||||||
|
|
@ -103,7 +103,7 @@ public class SerializationDocTest {
|
||||||
else if (obj instanceof User)
|
else if (obj instanceof User)
|
||||||
return ((User) obj).name.getBytes(UTF_8);
|
return ((User) obj).name.getBytes(UTF_8);
|
||||||
else
|
else
|
||||||
throw new IllegalArgumentException("Unknow type: " + obj);
|
throw new IllegalArgumentException("Unknown type: " + obj);
|
||||||
} catch (UnsupportedEncodingException e) {
|
} catch (UnsupportedEncodingException e) {
|
||||||
throw new RuntimeException(e.getMessage(), e);
|
throw new RuntimeException(e.getMessage(), e);
|
||||||
}
|
}
|
||||||
|
|
@ -119,7 +119,7 @@ public class SerializationDocTest {
|
||||||
else if (manifest.equals(USER_MANIFEST))
|
else if (manifest.equals(USER_MANIFEST))
|
||||||
return new User(new String(bytes, UTF_8));
|
return new User(new String(bytes, UTF_8));
|
||||||
else
|
else
|
||||||
throw new IllegalArgumentException("Unknow manifest: " + manifest);
|
throw new IllegalArgumentException("Unknown manifest: " + manifest);
|
||||||
} catch (UnsupportedEncodingException e) {
|
} catch (UnsupportedEncodingException e) {
|
||||||
throw new RuntimeException(e.getMessage(), e);
|
throw new RuntimeException(e.getMessage(), e);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -211,7 +211,7 @@ class Persistence(val system: ExtendedActorSystem) extends Extension {
|
||||||
case ext if ext(system).actor == journalPluginActor ⇒ ext(system).config
|
case ext if ext(system).actor == journalPluginActor ⇒ ext(system).config
|
||||||
} match {
|
} match {
|
||||||
case Some(conf) ⇒ conf
|
case Some(conf) ⇒ conf
|
||||||
case None ⇒ throw new IllegalArgumentException(s"Unknow plugin actor $journalPluginActor")
|
case None ⇒ throw new IllegalArgumentException(s"Unknown plugin actor $journalPluginActor")
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue