Make AccessibilityViewEmbedder final (flutter/engine#8429)

Since this class implements equals() and hashCode() it should either be
final or handle subclasses in equals(); given this is unlikely to be
subclassed, making it final is the simpler option.
This commit is contained in:
Chris Bracken 2019-04-03 15:06:11 -07:00 committed by GitHub
parent df39681b8c
commit e3beb1ce56

View File

@ -37,7 +37,7 @@ import java.util.Map;
* for the virtual accessibility node IDs in the platform view's tree. Internally this class maintains a bidirectional
* mapping between `flutterId`s and the corresponding platform view and `originId`.
*/
class AccessibilityViewEmbedder {
final class AccessibilityViewEmbedder {
private static final String TAG = "AccessibilityBridge";
private final ReflectionAccessors reflectionAccessors;