Permalink
Browse files

add deprecation messagea in scrooge-runtime. You'll get these warning…

…s when using scrooge-runtime 3 with scrooge 2 generated code
  • Loading branch information...
1 parent 5231faa commit 11e0d7682876a41a29cd66aee16c84e75f30ad57 @chunyan chunyan committed Apr 5, 2013
@@ -12,7 +12,7 @@ import scala.{Option => ScalaOption}
/**
* Common code used by any finagle thrift client code generated by scrooge.
*/
-@deprecated
+@deprecated("your code is generated by an outdated version of scrooge-generator", "3.0.6")
trait FinagleThriftClient {
val service: Service[ThriftClientRequest, Array[Byte]]
val protocolFactory: TProtocolFactory
@@ -11,7 +11,7 @@ import org.apache.thrift.transport.{TMemoryInputTransport, TMemoryBuffer}
/**
* Common code used by any finagle thrift service code generated by scrooge.
*/
-@deprecated
+@deprecated("your code is generated by an outdated version of scrooge-generator", "3.0.6")
trait FinagleThriftService extends Service[Array[Byte], Array[Byte]] {
def protocolFactory: TProtocolFactory
@@ -16,9 +16,9 @@ abstract class ThriftStructCodec[T <: ThriftStruct] {
lazy val metaData = new ThriftStructMetaData(this)
- @deprecated
+ @deprecated("your code is generated by an outdated version of scrooge-generator", "2.7.0")
def encoder: (T, TProtocol) => Unit = encode _
- @deprecated
+ @deprecated("your code is generated by an outdated version of scrooge-generator", "2.7.0")
def decoder: TProtocol => T = decode _
}

0 comments on commit 11e0d76

Please sign in to comment.