Skip to content

Commit 42a9e5b

Browse files
author
henry-lp
committed
Proposal for patching SonarQube rule 3032
Signed-off-by: henry-lp <tailp@kth.se>
1 parent 6f35dcb commit 42a9e5b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

org.eclipse.paho.client.mqttv3.test/src/test/java/org/eclipse/paho/client/mqttv3/test/MqttDataTypesTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public void TestEncodeAndDecodeComplexUTF8String() throws MqttException {
121121
*/
122122
@Test
123123
public void testICanEatGlass() throws IOException, MqttException {
124-
ClassLoader classLoader = getClass().getClassLoader();
124+
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
125125
String encodedFileName = classLoader.getResource("i_can_eat_glass.txt").getFile();
126126
String decodedFileName;
127127
try {

0 commit comments

Comments
 (0)