Skip to content

Conversation

@toggm
Copy link

@toggm toggm commented Feb 24, 2016

Had to adjust the persist to persistVn method in stamina-json due to the overloading of package method with default values.

def persister[T <: AnyRef: ClassTag](key: String)(implicit typeTag: TypeTag[T] = null): Persister[T, V1] = new JavaPersister[T](key)(Option(typeTag))

private class JavaPersister[T <: AnyRef: ClassTag](key: String) extends Persister[T, V1](key) {
private class JavaPersister[T <: AnyRef: ClassTag](key: String)(typeTagOption: Option[TypeTag[T]] = None) extends Persister[T, V1](key)(typeTagOption) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, this line now triggers a warning:

[warn] /home/aengelen/dev/stamina/stamina-core/src/test/scala/stamina/TestOnlyPersister.scala:15: private object in object TestOnlyPersister is never used
[warn]   private class JavaPersister[T <: AnyRef: ClassTag](key: String)(typeTagOption: Option[TypeTag[T]] = None) extends Persister[T, V1](key)(typeTagOption) {
[warn]                 ^

Not sure what that's about, as it definitely appears to be still in use...

@raboof
Copy link
Member

raboof commented May 15, 2016

Do we need to pass the Option[TypeTag] around while constructing the Persister? In https://github.com/scalapenos/stamina/tree/markedTypeTag I tried avoiding that, seemed to clean things up a bit - or am I missing something?

@toggm
Copy link
Author

toggm commented May 17, 2016

I'm currently quite busy but will look at your comments as soon as possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants