You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the minimum supported Java version is 8, I propose to only use Java's Optional type for simplicity. This allows for further improvements in the business logic.
Important
This refactor would be a major change in terms of backward compatibility, because the Optional type is exposed in the API.
These are some of the differences between the Optional types currently being used:
While most of the codebase uses japicmp's custom Optional type, some other parts rely on Guava's Optional implementation. This duality is somewhat confusing and may make the code hard to maintain long-term.
Since the minimum supported Java version is 8, I propose to only use Java's Optional type for simplicity. This allows for further improvements in the business logic.
Important
This refactor would be a major change in terms of backward compatibility, because the Optional type is exposed in the API.
These are some of the differences between the Optional types currently being used:
Optional.absent()
becomesOptional.empty()
.Optional.fromNullable(T)
becomesOptional.ofNullable(T)
.Optional.or(T)
becomesOptional.orElse(T)
.The text was updated successfully, but these errors were encountered: