mirror of
https://github.com/sbt/sbt.git
synced 2026-09-05 01:03:36 +02:00
Remove unnecessary F0, F1 and Maybe
`F0`, `F1` and `Maybe` have become useless since Java 8 introduced `Supplier`, `Function` and `Optional` in the default Java 8 standard library. Therefore, they are not necessary anymore. This change is required to change some Zinc's and sbt APIs. They are not widely used, so the changes will be small.
This commit is contained in:
@@ -3,11 +3,12 @@
|
||||
*/
|
||||
package xsbti;
|
||||
|
||||
public interface Logger
|
||||
{
|
||||
void error(F0<String> msg);
|
||||
void warn(F0<String> msg);
|
||||
void info(F0<String> msg);
|
||||
void debug(F0<String> msg);
|
||||
void trace(F0<Throwable> exception);
|
||||
import java.util.function.Supplier;
|
||||
|
||||
public interface Logger {
|
||||
void error(Supplier<String> msg);
|
||||
void warn(Supplier<String> msg);
|
||||
void info(Supplier<String> msg);
|
||||
void debug(Supplier<String> msg);
|
||||
void trace(Supplier<Throwable> exception);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user