ASF Bugzilla – Attachment 7035 Details for
Bug 18816
org.apache.taglibs.standard.lang.jstl.EmptyOperator.apply(...) bug
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
treats Collections instead of Lists or Maps
EmptyOperator-collection.txt (text/plain), 891 bytes, created by
gregory_lardiere
on 2003-07-01 07:47:14 UTC
(
hide
)
Description:
treats Collections instead of Lists or Maps
Filename:
MIME Type:
Creator:
gregory_lardiere
Created:
2003-07-01 07:47:14 UTC
Size:
891 bytes
patch
obsolete
>--- EmptyOperator.java.orig Wed Feb 19 23:06:24 2003 >+++ EmptyOperator.java Fri Jun 13 12:23:03 2003 >@@ -56,8 +56,7 @@ > package org.apache.taglibs.standard.lang.jstl; > > import java.lang.reflect.Array; >-import java.util.List; >-import java.util.Map; >+import java.util.Collection; > > /** > * >@@ -124,15 +123,9 @@ > return PrimitiveObjects.getBoolean (true); > } > >- // See if the value is an empty List >- else if (pValue instanceof List && >- ((List) pValue).isEmpty ()) { >- return PrimitiveObjects.getBoolean (true); >- } >- >- // See if the value is an empty Map >- else if (pValue instanceof Map && >- ((Map) pValue).isEmpty ()) { >+ // See if the value is an empty Collection >+ else if (pValue instanceof Collection && >+ ((Collection) pValue).isEmpty ()) { > return PrimitiveObjects.getBoolean (true); > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 18816
: 7035