Skip to content

Commit

Permalink
Try always specifying classloader
Browse files Browse the repository at this point in the history
  • Loading branch information
cb372 committed Mar 14, 2015
1 parent b5fc1a5 commit 42f432e
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,8 @@ trait RedisSerialization {
result.asInstanceOf[A]
}

private def createObjectInputStream(inputStream: InputStream): ObjectInputStream = customClassloader match {
case Some(classloader) => new ClassLoaderOIS(inputStream, classloader)
case None => new ObjectInputStream(inputStream)
}
private def createObjectInputStream(inputStream: InputStream): ObjectInputStream =
new ClassLoaderOIS(inputStream, customClassloader getOrElse getClass.getClassLoader)

}

Expand Down

0 comments on commit 42f432e

Please sign in to comment.