Skip to content

Commit c114f15

Browse files
committed
Silence warning in UrlImageDescriptorTest
The test is about url with spaces which is not supported if going through URI.
1 parent 6084b08 commit c114f15

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/org.eclipse.jface.tests/src/org/eclipse/jface/tests/images/UrlImageDescriptorTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2020, 2022 Christoph Läubrich and others.
2+
* Copyright (c) 2020, 2026 Christoph Läubrich and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -161,7 +161,9 @@ public void testImageFileNameProviderGetxName_forFileURL_WhiteSpace() throws IOE
161161
File imageFile = new File(imageFolder, "image with spaces.png");
162162
imageFile.createNewFile();
163163

164-
// This is an invalid URL because the whitespace characters are not properly encoded
164+
// This is an invalid URL because the whitespace characters are not properly
165+
// encoded
166+
@SuppressWarnings("deprecation")
165167
URL imageFileURL = new URL("file", null, imageFile.getPath());
166168
ImageDescriptor descriptor = ImageDescriptor.createFromURL(imageFileURL);
167169

0 commit comments

Comments
 (0)