Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 284ad5d

Browse files
authored
[camera] Suppress unchecked cast warning in java test (#3316)
* Suppress unchecked cast warning in java test * Bumped version number
1 parent a35f830 commit 284ad5d

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

packages/camera/camera/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.5.8+18
2+
3+
* Suppress unchecked warning in Android tests which prevented the tests to compile.
4+
15
## 0.5.8+17
26

37
* Added Android 30 support.

packages/camera/camera/android/src/test/java/io/flutter/plugins/camera/DartMessengerTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ public void sendCameraClosingEvent() {
9393
assertNull(event.get("errorDescription"));
9494
}
9595

96+
@SuppressWarnings("unchecked")
9697
private Map<String, String> decodeSentMessage(ByteBuffer sentMessage) {
9798
sentMessage.position(0);
98-
//noinspection unchecked
9999
return (Map<String, String>) StandardMethodCodec.INSTANCE.decodeEnvelope(sentMessage);
100100
}
101101

packages/camera/camera/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: camera
22
description: A Flutter plugin for getting information about and controlling the
33
camera on Android and iOS. Supports previewing the camera feed, capturing images, capturing video,
44
and streaming image buffers to dart.
5-
version: 0.5.8+17
5+
version: 0.5.8+18
66
homepage: https://github.com/flutter/plugins/tree/master/packages/camera/camera
77

88
dependencies:

0 commit comments

Comments
 (0)