From 8d22a54ff67e81b3195b4e3d46e8ea5620df9085 Mon Sep 17 00:00:00 2001 From: Gray Watson Date: Thu, 28 Jul 2022 20:44:40 -0400 Subject: [PATCH 1/3] Changed the README to demonstrate stuff. --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 9d09a9d..26b448c 100644 --- a/README.md +++ b/README.md @@ -65,3 +65,8 @@ For example: # ChangeLog Release Notes See the [ChangeLog.txt file](src/main/javadoc/doc-files/changelog.txt). + +# Some Stuff for Liz + +Hi there. + From 1b5fc3fce6216f92fc216e71d09fd25d83c3afa5 Mon Sep 17 00:00:00 2001 From: Gray Watson Date: Thu, 28 Jul 2022 20:52:08 -0400 Subject: [PATCH 2/3] break stuff --- src/main/java/com/j256/simplemagic/ContentInfoUtil.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/com/j256/simplemagic/ContentInfoUtil.java b/src/main/java/com/j256/simplemagic/ContentInfoUtil.java index 84d18d2..d44ed9d 100644 --- a/src/main/java/com/j256/simplemagic/ContentInfoUtil.java +++ b/src/main/java/com/j256/simplemagic/ContentInfoUtil.java @@ -260,11 +260,7 @@ public ContentInfo findMatch(InputStream inputStream) throws IOException { * Return the content type from the associated bytes or null if none of the magic entries matched. */ public ContentInfo findMatch(byte[] bytes) { - if (bytes.length == 0) { - return ContentInfo.EMPTY_INFO; - } else { - return magicEntries.findMatch(bytes); - } + return ContentInfo.EMPTY_INFO; } /** From 0565b8040c47198b8eec2b2ffc61a83e3858dc6c Mon Sep 17 00:00:00 2001 From: Gray Watson Date: Thu, 28 Jul 2022 21:14:57 -0400 Subject: [PATCH 3/3] Comments --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 26b448c..21a3704 100644 --- a/README.md +++ b/README.md @@ -70,3 +70,4 @@ See the [ChangeLog.txt file](src/main/javadoc/doc-files/changelog.txt). Hi there. +