From c56611578fc3d6809ca2c4ca0ac8f1425c2e6e3d Mon Sep 17 00:00:00 2001 From: xuwei-k <6b656e6a69@gmail.com> Date: Sun, 8 Oct 2023 20:28:23 +0900 Subject: [PATCH] fix warning. make MacJNA.TimeBuf final --- build.sbt | 1 + io/src/main/java/sbt/internal/io/MacJNA.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 63a5eeeb..853ce936 100644 --- a/build.sbt +++ b/build.sbt @@ -106,6 +106,7 @@ val io = (project in file("io")) ) map (version => organization.value %% moduleName.value % version) }), mimaBinaryIssueFilters ++= Seq( + exclude[FinalClassProblem]("sbt.internal.io.MacJNA$TimeBuf"), // MiMa doesn't treat effectively final members as final // WORKAROUND typesafehub/migration-manager#162 exclude[FinalMethodProblem]("sbt.io.SimpleFilter.accept"), diff --git a/io/src/main/java/sbt/internal/io/MacJNA.java b/io/src/main/java/sbt/internal/io/MacJNA.java index bc30dcb9..7ad182b2 100644 --- a/io/src/main/java/sbt/internal/io/MacJNA.java +++ b/io/src/main/java/sbt/internal/io/MacJNA.java @@ -45,7 +45,7 @@ public List getFieldOrder() { }; } - public static class TimeBuf extends Structure { + public static final class TimeBuf extends Structure { public int size; public long tv_sec; public long tv_nsec;