From 585a888ecbbd04e773c801ab8959ffc11aaee50f Mon Sep 17 00:00:00 2001 From: cpfeiffer Date: Mon, 17 Aug 2015 22:46:39 +0200 Subject: [PATCH] Improved javadoc --- .../nodomain/freeyourgadget/gadgetbridge/util/FileUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 bbaed7d04..b2631f13b 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