diff options
author | Carsten Hammer <carsten.hammer@t-online.de> | 2019-04-11 19:27:34 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2019-04-13 19:53:29 +0200 |
commit | 6a4c77e619d79c885aa6f08f2a1d8d8c1a936bcb (patch) | |
tree | 30c8ad7fa8a890578c07026d494cacb4a16406a7 /org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm | |
parent | 6e03645ad80adf71527ca18f937db4b8e34b7f13 (diff) | |
download | jgit-6a4c77e619d79c885aa6f08f2a1d8d8c1a936bcb.tar.gz jgit-6a4c77e619d79c885aa6f08f2a1d8d8c1a936bcb.zip |
Use isEmpty() instead of size()==0 where possible
Change-Id: I97f1367a2ea9f1f6146e264c27c3981b842f2a26
Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm')
-rw-r--r-- | org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/opt/PathTreeFilterHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/opt/PathTreeFilterHandler.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/opt/PathTreeFilterHandler.java index d99f88e35b..4a50708b4c 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/opt/PathTreeFilterHandler.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/opt/PathTreeFilterHandler.java @@ -96,7 +96,7 @@ public class PathTreeFilterHandler extends OptionHandler<TreeFilter> { filters.add(PathFilter.create(path)); } - if (filters.size() == 0) + if (filters.isEmpty()) return 0; if (filters.size() == 1) { setter.addValue(filters.get(0)); |