Skip to content

Commit 40d88e9

Browse files
committed
Try a lambda instead of a method reference for java 8 support
Android's new toolchain does not seem to be able to handle those yet.
1 parent 2726191 commit 40d88e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/src/main/java/me/proxer/library/api/EnumRetrofitConverterFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ final class EnumRetrofitConverterFactory extends Converter.Factory {
1616
public Converter<?, String> stringConverter(final Type type, final Annotation[] annotations,
1717
final Retrofit retrofit) {
1818
if (((Class<?>) type).isEnum()) {
19-
return (Converter<Enum<?>, String>) ProxerUtils::getApiEnumName;
19+
return (Converter<Enum<?>, String>) value -> ProxerUtils.getApiEnumName(value);
2020
}
2121

2222
return null;

0 commit comments

Comments
 (0)