Skip to content

Commit

Permalink
adding throws RuntimeException to the method signature
Browse files Browse the repository at this point in the history
  • Loading branch information
remibettan committed Feb 6, 2020
1 parent 7d2a372 commit d51f292
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public List<StreamProfile> getStreamProfiles(){
return rv;
}

public <T extends Sensor> T as(Extension extension) {
public <T extends Sensor> T as(Extension extension) throws RuntimeException {
if (this.is(extension)) {
switch (extension){
case ROI: return (T) new RoiSensor(mHandle);
Expand Down

0 comments on commit d51f292

Please sign in to comment.