Enable strict scalac options for akka-protobuf (#26582)
* Enable strict scalac options for akka-protobuf Unfortunately it still produces a Java warning, but I see no safe way around that (so we can't just add `-Werror` to javacOptions) * Remove 'dead' code, bringing the class back in line with upstream
This commit is contained in:
commit
fa2a89310c
2 changed files with 2 additions and 8 deletions
|
|
@ -114,10 +114,6 @@ public abstract class AbstractParser<MessageType extends MessageLite>
|
|||
return message;
|
||||
} catch (InvalidProtocolBufferException e) {
|
||||
throw e;
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException(
|
||||
"Reading from a ByteString threw an IOException (should " +
|
||||
"never happen).", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -151,10 +147,6 @@ public abstract class AbstractParser<MessageType extends MessageLite>
|
|||
return message;
|
||||
} catch (InvalidProtocolBufferException e) {
|
||||
throw e;
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException(
|
||||
"Reading from a byte array threw an IOException (should " +
|
||||
"never happen).", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -24,10 +24,12 @@ object AkkaDisciplinePlugin extends AutoPlugin with ScalafixSupport {
|
|||
val fatalWarningsFor = Set(
|
||||
"akka-discovery",
|
||||
"akka-distributed-data",
|
||||
"akka-protobuf",
|
||||
)
|
||||
|
||||
val strictProjects = Set(
|
||||
"akka-discovery",
|
||||
"akka-protobuf",
|
||||
)
|
||||
|
||||
lazy val scalaFixSettings = Seq(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue