Skip to content

Commit 01926a2

Browse files
author
Ranjan Dasgupta
authored
Merge pull request #822 from henry-lp/repairnator-patch-2020-08-29_1842
Proposal for patching SonarQube rule 3032
2 parents 0d10690 + 42a9e5b commit 01926a2

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)