Skip to content

Commit

Permalink
chore: suppress warning (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
octonato authored Jan 10, 2022
1 parent e869197 commit c8e62ad
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ object ModelBuilder {
}
}

@SuppressWarnings(Array("org.wartremover.warts.Throw"))
private def modelFromCodegenOptions(
serviceDescriptor: ServiceDescriptor,
additionalDescriptors: Seq[Descriptors.FileDescriptor]): Model = {
Expand Down Expand Up @@ -343,6 +344,7 @@ object ModelBuilder {
*
* The above input will trigger a lookup for a descriptor defining package "foo.bar.baz" and message "Foo"
*/
@SuppressWarnings(Array("org.wartremover.warts.Throw"))
private def lookupDescriptor(
resolvedPackage: String,
resolvedName: String,
Expand Down Expand Up @@ -386,6 +388,7 @@ object ModelBuilder {
* @return
* the FQN for a proto 'message' (which are used not just for "messages", but also for state types etc)
*/
@SuppressWarnings(Array("org.wartremover.warts.Throw"))
private def resolveFullyQualifiedMessageType(
name: String,
descriptor: Descriptors.FileDescriptor,
Expand Down

0 comments on commit c8e62ad

Please sign in to comment.