Skip to content

Commit

Permalink
Fix "Unnecessary cast" warnings
Browse files Browse the repository at this point in the history
JDT analysis was changed
  • Loading branch information
EcljpseB0T committed Jun 24, 2024
1 parent 0359821 commit b9faaaa
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.e4.tools.emf.ui;singleton:=true
Bundle-Version: 4.8.400.qualifier
Bundle-Version: 4.8.500.qualifier
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-17
Expand Down
2 changes: 1 addition & 1 deletion e4tools/bundles/org.eclipse.e4.tools.emf.ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<groupId>eclipse.platform.ui</groupId>
<artifactId>org.eclipse.e4.tools.emf.ui</artifactId>
<version>4.8.400-SNAPSHOT</version>
<version>4.8.500-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ private void checkDeltaContainsE4xmi(IResourceDelta delta) {
IResource r = rd.getResource();
if (r instanceof IFile)
{
if ("e4xmi".equals(((IFile) r).getFileExtension())) { //$NON-NLS-1$
if ("e4xmi".equals(r.getFileExtension())) { //$NON-NLS-1$
modelResourceSet = null;
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ public static void createClassURIField(Composite parent, final Messages Messages
});
@SuppressWarnings("unchecked")

Check warning on line 866 in e4tools/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/ControlFactory.java

View check run for this annotation

Jenkins - eclipse-pde / Compiler and API Tools

Unnecessary Code

LOW: At least one of the problems in category 'unchecked' is not analysed due to a compiler option being ignored
final Binding binding = context.bindValue(textProp.observeDelayed(200, t),
((IValueProperty<Object, Object>) EMFEditProperties.value(editor.getEditingDomain(), feature))
EMFEditProperties.value(editor.getEditingDomain(), feature)
.observeDetail(editor.getMaster()),
new UpdateValueStrategy<>().setAfterConvertValidator(new ContributionURIValidator()),
new UpdateValueStrategy<>());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ protected void handleAdd(EClass eClass, boolean separator) {
public List<Action> getActions(Object element) {
final ArrayList<Action> l = new ArrayList<>(super.getActions(element));
l.addAll(actions);
if (((MUIElement) getMaster().getValue()).getVisibleWhen() == null) {
if (getMaster().getValue().getVisibleWhen() == null) {
l.add(addExpression);
}
return l;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ public FeaturePath[] getLabelProperties() {
@Override
public List<Action> getActions(Object element) {
final ArrayList<Action> l = new ArrayList<>(super.getActions(element));
if (((MUIElement) getMaster().getValue()).getVisibleWhen() == null) {
if (getMaster().getValue().getVisibleWhen() == null) {
l.add(addExpression);
}
return l;
Expand Down
2 changes: 1 addition & 1 deletion features/org.eclipse.e4.core.tools.feature/feature.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<feature
id="org.eclipse.e4.core.tools.feature"
label="%featureName"
version="4.30.200.qualifier"
version="4.30.300.qualifier"
provider-name="%providerName"
license-feature="org.eclipse.license"
license-feature-version="0.0.0">
Expand Down

0 comments on commit b9faaaa

Please sign in to comment.