This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
youys
/
ant
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
1
Code
Releases
0
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
frequency used to accept a null Collection before Java8 refactoring
master
Stefan Bodewig
7 years ago
parent
82f7d9be1d
commit
4d0a7d5f26
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/main/org/apache/tools/ant/util/CollectionUtils.java
+ 1
- 1
src/main/org/apache/tools/ant/util/CollectionUtils.java
View File
@@ -252,7 +252,7 @@ public class CollectionUtils {
*/
@Deprecated
public static int frequency(Collection<?> c, Object o) {
return Collections.frequency(c, o);
return
c == null ? 0 :
Collections.frequency(c, o);
}
private CollectionUtils() {
Write
Preview
Loading…
Cancel
Save