Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Hammer2019-05-24 15:36:11 +0000
committerLars Vogel2019-06-11 11:01:32 +0000
commit900b243c57236b0489cfa2f390c5e96016f6b306 (patch)
treeb800ab6fba31df8f2ae061ae30739172bf81cec9 /bundles/org.eclipse.core.net/src/org/eclipse
parent5985742bd756f3d5eabe4c512f4c398301e2593f (diff)
downloadeclipse.platform.team-900b243c57236b0489cfa2f390c5e96016f6b306.tar.gz
eclipse.platform.team-900b243c57236b0489cfa2f390c5e96016f6b306.tar.xz
eclipse.platform.team-900b243c57236b0489cfa2f390c5e96016f6b306.zip
Use isEmpty() instead of size()==0 where possible
Change-Id: I591baac7b623f8ed3681a12471ffe6438a13175f Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
Diffstat (limited to 'bundles/org.eclipse.core.net/src/org/eclipse')
-rw-r--r--bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/Activator.java2
-rw-r--r--bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/proxy/win32/winhttp/StaticProxyConfig.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/Activator.java b/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/Activator.java
index 708bbd2cd..1604f2804 100644
--- a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/Activator.java
+++ b/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/Activator.java
@@ -135,7 +135,7 @@ public class Activator implements BundleActivator {
}
}
- FrameworkLogEntry[] children = childlist.size() == 0 ? null
+ FrameworkLogEntry[] children = childlist.isEmpty() ? null
: childlist.toArray(new FrameworkLogEntry[childlist.size()]);
return new FrameworkLogEntry(status.getPlugin(), status.getSeverity(),
diff --git a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/proxy/win32/winhttp/StaticProxyConfig.java b/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/proxy/win32/winhttp/StaticProxyConfig.java
index 4fdaba22a..a1b3963dc 100644
--- a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/proxy/win32/winhttp/StaticProxyConfig.java
+++ b/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/proxy/win32/winhttp/StaticProxyConfig.java
@@ -106,7 +106,7 @@ public class StaticProxyConfig {
}
private IProxyData[] getUniversalProxiesData() {
- if (universalProxies.size() == 0) {
+ if (universalProxies.isEmpty()) {
return new IProxyData[0];
}
IProxyData[] data = new IProxyData[KNOWN_TYPES.length];

Back to the top