Skip to content

Commit c060257

Browse files
eclipse-equinox-botlaeubi
authored andcommitted
Perform clean code of bundles/org.eclipse.equinox.p2.engine
1 parent 5e9376f commit c060257

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/Profile.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public Object getManagedProperty(Object client, String memberName, Object key) {
227227
if (translationSupport == null) {
228228
translationSupport = new TranslationSupport(this);
229229
}
230-
return key instanceof KeyWithLocale ? translationSupport.getIUProperty(iu, (KeyWithLocale) key) : translationSupport.getIUProperty(iu, key.toString());
230+
return key instanceof KeyWithLocale k ? translationSupport.getIUProperty(iu, k) : translationSupport.getIUProperty(iu, key.toString());
231231
}
232232
}
233233
return null;

bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/phases/CertificateChecker.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ private IStatus checkCertificates(SignedContentFactory verifierFactory) {
146146
return Status.OK_STATUS;
147147
}
148148

149-
IArtifactUIServices artifactServiceUI = serviceUI instanceof IArtifactUIServices
150-
? (IArtifactUIServices) serviceUI
149+
IArtifactUIServices artifactServiceUI = serviceUI instanceof IArtifactUIServices i
150+
? i
151151
: (untrustedCertificateChains, untrustedPGPKeys, unsignedArtifacts,
152152
artifactFiles) -> IArtifactUIServices.getTrustInfo(serviceUI, untrustedCertificateChains,
153153
untrustedPGPKeys, unsignedArtifacts, artifactFiles);

0 commit comments

Comments
 (0)