Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2021-02-03 09:57:50 +0000
committerLars Vogel2021-02-04 11:56:08 +0000
commit3b3c6595feadf8b7623eb4044948be2ee44cca7c (patch)
treef76397b8ad4d105e195f1a9c1e44fad82ac83213
parente8c4d1c8d52afd3b8443c3b9e23f1611cf6bce61 (diff)
downloadeclipse.platform.team-I20210204-1300.tar.gz
eclipse.platform.team-I20210204-1300.tar.xz
eclipse.platform.team-I20210204-1300.zip
Using the Primitive parsing cleanup on team.ui Change-Id: Iaf004d826bbc3f8bc674ca48d103ba7374eaaa87 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/registry/SynchronizeParticipantDescriptor.java2
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/registry/TeamContentProviderDescriptor.java3
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/AbstractSynchronizeParticipant.java2
3 files changed, 3 insertions, 4 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/registry/SynchronizeParticipantDescriptor.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/registry/SynchronizeParticipantDescriptor.java
index 888303a47..ee5a4815a 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/registry/SynchronizeParticipantDescriptor.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/registry/SynchronizeParticipantDescriptor.java
@@ -107,7 +107,7 @@ public class SynchronizeParticipantDescriptor implements ISynchronizeParticipant
if(persistentString == null) {
persistent = true;
} else {
- persistent = Boolean.valueOf(persistentString).booleanValue();
+ persistent = Boolean.parseBoolean(persistentString);
}
helpContextId = configElement.getAttribute(ATT_HELP_CONTEXT_ID);
// Sanity check.
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/registry/TeamContentProviderDescriptor.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/registry/TeamContentProviderDescriptor.java
index 61328c5af..83ac72b1c 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/registry/TeamContentProviderDescriptor.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/registry/TeamContentProviderDescriptor.java
@@ -79,8 +79,7 @@ public class TeamContentProviderDescriptor implements ITeamContentProviderDescri
String supportsFlatLayoutString = element
.getAttribute(ATT_SUPPORTS_FLAT_LAYOUT);
if (supportsFlatLayoutString != null) {
- supportsFlatLayout = Boolean.valueOf(
- supportsFlatLayoutString).booleanValue();
+ supportsFlatLayout = Boolean.parseBoolean(supportsFlatLayoutString);
}
contentProviderName = extension.getLabel();
}
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/AbstractSynchronizeParticipant.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/AbstractSynchronizeParticipant.java
index 37c1b851b..1199053cd 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/AbstractSynchronizeParticipant.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/AbstractSynchronizeParticipant.java
@@ -279,7 +279,7 @@ public abstract class AbstractSynchronizeParticipant extends PlatformObject impl
@Override
public void init(String secondaryId, IMemento memento) throws PartInitException {
setSecondaryId(secondaryId);
- pinned = Boolean.valueOf(memento.getString(CTX_PINNED)).booleanValue();
+ pinned = Boolean.parseBoolean(memento.getString(CTX_PINNED));
}
@Override

Back to the top