Repository navigation
Move all file type (as in mime type) checks to MimeTypeUtil - #323
Merged
Merged
Conversation
Member
Sorry - it's currently just overloaded - I will look into proper scale out soon :) |
AndyScherzinger
force-pushed
the
MimeUtilsHousekeeping
branch
3 times, most recently
from
October 17, 2016 11:47
5ada3b1 to
2a941d8
Compare
Member
Author
|
@tobiasKaminsky Imho ready to be merged - please review 馃殌 |
AndyScherzinger
force-pushed
the
MimeUtilsHousekeeping
branch
from
October 27, 2016 14:27
2a941d8 to
a529f29
Compare
AndyScherzinger
force-pushed
the
MimeUtilsHousekeeping
branch
from
October 31, 2016 11:51
a529f29 to
a5dec01
Compare
Member
Author
|
@tobiasKaminsky merge? |
tobiasKaminsky
approved these changes
Nov 1, 2016
tobiasKaminsky
left a comment
Member
There was a problem hiding this comment.
Just a really really minor one.
| */ | ||
| public static boolean isImage(String mimeType) { | ||
| return (mimeType.startsWith("image/") && !mimeType.contains("djvu")); | ||
| return (mimeType!=null && mimeType.toLowerCase().startsWith("image/") && !mimeType.toLowerCase().contains |
Member
There was a problem hiding this comment.
space before and after !=
Member
Author
|
And merging 馃憤 馃殌 |
Member
Author
|
lgtm has hickups...again 馃槨 |
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR for #317 [Refactoring] Utilize MimetypeIconUtil implementation
@tobiasKaminsky please review, etc. etc. :)