Created
February 21, 2014 16:17
-
-
Save vallettea/9137253 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class GeomJsonSerializer extends JsonSerializer[T <: Geometry] { | |
| def serialize[T <: Geometry](geom: T, json: JsonGenerator, provider: SerializerProvider) { | |
| json.writeString(jtsToGeoJson(geom)) | |
| } | |
| } | |
| [error] /Users/vallette/projects/safesignal/util-core/src/main/scala/net/snips/util/StringUtils.scala:63: ']' expected but '<:' found. | |
| [error] class GeomJsonSerializer extends JsonSerializer[T <: Geometry] { | |
| [error] ^ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tu peux pas faire ca car tu dois declarer le type T dans la classe GeomJsonSerializer
class GeomJsonSerializer[T <: Geometry] extends JsonSerializer[T]