Skip to content

Commit

Permalink
Introduced ValueType
Browse files Browse the repository at this point in the history
  • Loading branch information
ruseinov authored and thesamet committed Jul 14, 2017
1 parent fda77b4 commit 769aa56
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ trait JavaProtoSupport[ScalaPB, JavaPB] extends Any {
}

trait GeneratedMessageCompanion[A <: GeneratedMessage with Message[A]] {
type ValueType = A

def parseFrom(input: CodedInputStream): A = LiteParser.parseFrom(this, input)

def parseFrom(input: InputStream): A = parseFrom(CodedInputStream.newInstance(input))
Expand Down

0 comments on commit 769aa56

Please sign in to comment.