Fix some warnings seen after the migration to JDK 11 (flutter/engine#28045)

This commit is contained in:
Jason Simmons 2021-08-12 11:27:02 -07:00 committed by GitHub
parent 80e299c6b0
commit c32c76cd83
3 changed files with 3 additions and 1 deletions

View File

@ -23,6 +23,7 @@ import androidx.annotation.Nullable;
*
* @deprecated
*/
@Deprecated
public final class DrawableSplashScreen implements SplashScreen {
private final Drawable drawable;
private final ImageView.ScaleType scaleType;

View File

@ -23,6 +23,7 @@ import androidx.annotation.Nullable;
*
* @deprecated
*/
@Deprecated
public interface SplashScreen {
/**
* Creates a {@code View} to be displayed as a splash screen before Flutter renders its first

View File

@ -2692,7 +2692,7 @@ public class AccessibilityBridge extends AccessibilityNodeProvider {
switch (attribute.type) {
case SPELLOUT:
{
final TtsSpan ttsSpan = new TtsSpan.Builder(TtsSpan.TYPE_VERBATIM).build();
final TtsSpan ttsSpan = new TtsSpan.Builder<>(TtsSpan.TYPE_VERBATIM).build();
spannableString.setSpan(ttsSpan, attribute.start, attribute.end, 0);
break;
}