Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2018-07-17 23:00:40 +0000
committerAlexander Kurtakov2018-07-18 08:44:36 +0000
commitda739fda7d4ed45f5ed4e29f451479daeb58dd9a (patch)
tree33fa88a0a5489c70f323f56b202fa389b07509ff /bundles/org.eclipse.jface.databinding/src/org/eclipse/jface
parente7957706497a9a934ed67a51bb9ce1d605605dc5 (diff)
downloadeclipse.platform.ui-da739fda7d4ed45f5ed4e29f451479daeb58dd9a.tar.gz
eclipse.platform.ui-da739fda7d4ed45f5ed4e29f451479daeb58dd9a.tar.xz
eclipse.platform.ui-da739fda7d4ed45f5ed4e29f451479daeb58dd9a.zip
Remove unnecessary casts in o.e.jface.databinding.
Change-Id: I3aab58a6340db35c70205dbe4c4ccc6a444e39e2 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.jface.databinding/src/org/eclipse/jface')
-rw-r--r--bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/dialog/DialogPageSupport.java4
-rw-r--r--bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/dialog/MaxSeverityValidationStatusProvider.java4
-rw-r--r--bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/dialog/TitleAreaDialogSupport.java4
-rw-r--r--bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/dialog/ValidationMessageProvider.java6
4 files changed, 9 insertions, 9 deletions
diff --git a/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/dialog/DialogPageSupport.java b/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/dialog/DialogPageSupport.java
index 5b4022fd7c4..f89c1befe44 100644
--- a/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/dialog/DialogPageSupport.java
+++ b/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/dialog/DialogPageSupport.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008, 2015 Matthew Hall and others.
+ * Copyright (c) 2008, 2018 Matthew Hall and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -210,7 +210,7 @@ public class DialogPageSupport {
currentStatusProvider = (ValidationStatusProvider) aggregateStatusProvider
.getValue();
if (currentStatusProvider != null) {
- currentStatus = (IStatus) currentStatusProvider
+ currentStatus = currentStatusProvider
.getValidationStatus().getValue();
} else {
currentStatus = null;
diff --git a/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/dialog/MaxSeverityValidationStatusProvider.java b/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/dialog/MaxSeverityValidationStatusProvider.java
index 4c7a76009e8..f1091e4a780 100644
--- a/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/dialog/MaxSeverityValidationStatusProvider.java
+++ b/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/dialog/MaxSeverityValidationStatusProvider.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2014 Ovidio Mallo and others.
+ * Copyright (c) 2009, 2018 Ovidio Mallo and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -35,7 +35,7 @@ import org.eclipse.core.runtime.IStatus;
for (Iterator it = validationStatusProviders.iterator(); it.hasNext();) {
ValidationStatusProvider provider = (ValidationStatusProvider) it
.next();
- IStatus status = (IStatus) provider.getValidationStatus()
+ IStatus status = provider.getValidationStatus()
.getValue();
if (status.getSeverity() > maxSeverity) {
maxSeverity = status.getSeverity();
diff --git a/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/dialog/TitleAreaDialogSupport.java b/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/dialog/TitleAreaDialogSupport.java
index 9b8693eb1f1..3d3e29c75cd 100644
--- a/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/dialog/TitleAreaDialogSupport.java
+++ b/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/dialog/TitleAreaDialogSupport.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008, 2015 Matthew Hall and others.
+ * Copyright (c) 2008, 2018 Matthew Hall and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -187,7 +187,7 @@ public class TitleAreaDialogSupport {
currentStatusProvider = (ValidationStatusProvider) aggregateStatusProvider
.getValue();
if (currentStatusProvider != null) {
- currentStatus = (IStatus) currentStatusProvider
+ currentStatus = currentStatusProvider
.getValidationStatus().getValue();
} else {
currentStatus = null;
diff --git a/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/dialog/ValidationMessageProvider.java b/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/dialog/ValidationMessageProvider.java
index 16eac43dcb7..13f3f96db30 100644
--- a/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/dialog/ValidationMessageProvider.java
+++ b/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/dialog/ValidationMessageProvider.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2015 Ovidio Mallo and others.
+ * Copyright (c) 2009, 2018 Ovidio Mallo and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -32,7 +32,7 @@ public class ValidationMessageProvider implements IValidationMessageProvider {
@Override
public String getMessage(ValidationStatusProvider statusProvider) {
if (statusProvider != null) {
- IStatus status = (IStatus) statusProvider.getValidationStatus()
+ IStatus status = statusProvider.getValidationStatus()
.getValue();
return status.getMessage();
}
@@ -51,7 +51,7 @@ public class ValidationMessageProvider implements IValidationMessageProvider {
return IMessageProvider.NONE;
}
- IStatus status = (IStatus) statusProvider.getValidationStatus()
+ IStatus status = statusProvider.getValidationStatus()
.getValue();
int severity = status.getSeverity();
switch (severity) {

Back to the top