Skip to content

Commit f69e351

Browse files
eclipse-pde-botlaeubi
authored andcommitted
Perform clean code of ui/org.eclipse.pde.spy.context
1 parent 02cf1d8 commit f69e351

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ui/org.eclipse.pde.spy.context/src/org/eclipse/pde/internal/spy/context/ContextDataFilter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,10 @@ public boolean matchText(String text) {
111111
*/
112112
private Collection<String> computeValues(IEclipseContext ctx) {
113113
Collection<String> result = new ArrayList<>();
114-
if (ctx instanceof EclipseContext) {
114+
if (ctx instanceof EclipseContext currentContext) {
115115
// Search for all strings in this context (values and context
116116
// function)
117117

118-
EclipseContext currentContext = (EclipseContext) ctx;
119118
extractStringsFromMap(currentContext.localData(), result);
120119

121120
// Search also in context functions

0 commit comments

Comments
 (0)