aboutsummaryrefslogtreecommitdiffstats
path: root/src/examples
diff options
context:
space:
mode:
authorJaven O'Neal <onealj@apache.org>2017-01-02 22:23:56 +0000
committerJaven O'Neal <onealj@apache.org>2017-01-02 22:23:56 +0000
commita0077b9ba7e6e17c5f503d50777173a18968a630 (patch)
tree71a6f6b403e4749b3ae509397ded67e34c0d8739 /src/examples
parent2ed838fe7c36cdb98f18c57bbde7ef6427037222 (diff)
downloadpoi-a0077b9ba7e6e17c5f503d50777173a18968a630.tar.gz
poi-a0077b9ba7e6e17c5f503d50777173a18968a630.zip
use case-insensitive string startsWith/endsWith utility function
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1777031 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/src/org/apache/poi/ss/examples/AddDimensionedImage.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/examples/src/org/apache/poi/ss/examples/AddDimensionedImage.java b/src/examples/src/org/apache/poi/ss/examples/AddDimensionedImage.java
index a7ef6d2ba2..a9099f5756 100644
--- a/src/examples/src/org/apache/poi/ss/examples/AddDimensionedImage.java
+++ b/src/examples/src/org/apache/poi/ss/examples/AddDimensionedImage.java
@@ -387,7 +387,7 @@ public class AddDimensionedImage {
if( sURL.endsWith(".png") ) {
imageType = Workbook.PICTURE_TYPE_PNG;
}
- else if( sURL.endsWith("jpg") || sURL.endsWith(".jpeg") ) {
+ else if( sURL.endsWith(".jpg") || sURL.endsWith(".jpeg") ) {
imageType = Workbook.PICTURE_TYPE_JPEG;
}
else {