Skip to content

Commit

Permalink
Merge pull request #356 from xuwei-k/MacJNA-TimeBuf-final
Browse files Browse the repository at this point in the history
fix warning. make MacJNA.TimeBuf final
  • Loading branch information
eed3si9n authored Oct 8, 2023
2 parents e014d97 + c566115 commit 2656359
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
2 changes: 1 addition & 1 deletion io/src/main/java/sbt/internal/io/MacJNA.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public List<String> 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;
Expand Down

0 comments on commit 2656359

Please sign in to comment.