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

Commit

Permalink
[camera] Suppress unchecked cast warning in java test (#3316)
Browse files Browse the repository at this point in the history
* Suppress unchecked cast warning in java test

* Bumped version number
  • Loading branch information
mvanbeusekom committed Dec 10, 2020
1 parent a35f830 commit 284ad5d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/camera/camera/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.5.8+18

* Suppress unchecked warning in Android tests which prevented the tests to compile.

## 0.5.8+17

* Added Android 30 support.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ public void sendCameraClosingEvent() {
assertNull(event.get("errorDescription"));
}

@SuppressWarnings("unchecked")
private Map<String, String> decodeSentMessage(ByteBuffer sentMessage) {
sentMessage.position(0);
//noinspection unchecked
return (Map<String, String>) StandardMethodCodec.INSTANCE.decodeEnvelope(sentMessage);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/camera/camera/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: camera
description: A Flutter plugin for getting information about and controlling the
camera on Android and iOS. Supports previewing the camera feed, capturing images, capturing video,
and streaming image buffers to dart.
version: 0.5.8+17
version: 0.5.8+18
homepage: https://github.com/flutter/plugins/tree/master/packages/camera/camera

dependencies:
Expand Down

0 comments on commit 284ad5d

Please sign in to comment.