Skip to content

Commit 54ef315

Browse files
eclipse-equinox-botlaeubi
authored andcommitted
Perform clean code of bundles/org.eclipse.equinox.p2.metadata.repository
1 parent 76e4305 commit 54ef315

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/internal/p2/metadata/repository/LocalMetadataRepository.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public synchronized Object getManagedProperty(Object client, String memberName,
166166
if (translationSupport == null) {
167167
translationSupport = new TranslationSupport(this);
168168
}
169-
return key instanceof KeyWithLocale ? translationSupport.getIUProperty(iu, (KeyWithLocale) key) : translationSupport.getIUProperty(iu, key.toString());
169+
return key instanceof KeyWithLocale k ? translationSupport.getIUProperty(iu, k) : translationSupport.getIUProperty(iu, key.toString());
170170
}
171171
return null;
172172
}

bundles/org.eclipse.equinox.p2.metadata.repository/src/org/eclipse/equinox/internal/p2/metadata/repository/URLMetadataRepository.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public synchronized Object getManagedProperty(Object client, String memberName,
140140
if (translationSupport == null) {
141141
translationSupport = new TranslationSupport(this);
142142
}
143-
return key instanceof KeyWithLocale ? translationSupport.getIUProperty(iu, (KeyWithLocale) key) : translationSupport.getIUProperty(iu, key.toString());
143+
return key instanceof KeyWithLocale k ? translationSupport.getIUProperty(iu, k) : translationSupport.getIUProperty(iu, key.toString());
144144
}
145145
return null;
146146
}

0 commit comments

Comments
 (0)