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
tiny performance tweak
master
Stefan Bodewig
7 years ago
parent
acd33fa8df
commit
c053271df8
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/types/resources/AllButFirst.java
+ 1
- 1
src/main/org/apache/tools/ant/types/resources/AllButFirst.java
View File
@@ -42,7 +42,7 @@ public class AllButFirst extends SizeLimitCollection {
@Override
public synchronized int size() {
return
(int) getResourceCollection().stream().skip(getValidCount()).count(
);
return
Math.max(getResourceCollection().size() - getValidCount(), 0
);
}
}
Write
Preview
Loading…
Cancel
Save