Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 11e0d7682876a41a29cd66aee16c84e75f30ad57 1 parent 5231faa
@chunyan chunyan authored
View
2  scrooge-runtime/src/main/scala/com/twitter/scrooge/FinagleThriftClient.scala
@@ -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
View
2  scrooge-runtime/src/main/scala/com/twitter/scrooge/FinagleThriftService.scala
@@ -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
View
4 scrooge-runtime/src/main/scala/com/twitter/scrooge/ThriftStruct.scala
@@ -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 _
}
Please sign in to comment.
Something went wrong with that request. Please try again.