diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/FileUtils.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/FileUtils.java index bbaed7d0..b2631f13 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/FileUtils.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/FileUtils.java @@ -49,7 +49,8 @@ public class FileUtils { /** * Reads the contents of the given InputStream into a byte array, but does not - * read more than maxLen bytes. + * read more than maxLen bytes. If the stream provides more than maxLen bytes, + * an IOException is thrown. * @param in the stream to read from * @param maxLen the maximum number of bytes to read/return * @return the bytes read from the InputStream