mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
[platform-util] Suppress warnings
GitOrigin-RevId: 82355a5ede2d07b0c4c1a861411ab9ecb5c12ab0
This commit is contained in:
committed by
intellij-monorepo-bot
parent
eac5bbdd89
commit
d281d26dad
@@ -18,9 +18,6 @@ import org.intellij.lang.annotations.RegExp;
|
||||
import org.jetbrains.annotations.*;
|
||||
|
||||
import java.io.*;
|
||||
import java.lang.reflect.InvocationHandler;
|
||||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.Proxy;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URI;
|
||||
import java.nio.charset.Charset;
|
||||
@@ -1563,6 +1560,9 @@ public class FileUtil {
|
||||
catch (ClassNotFoundException e) {
|
||||
// Do nothing
|
||||
} finally {
|
||||
//We cannot use TObjectHashingStrategy explicitly to declare the variable, as NoClassDefFoundError could be thrown
|
||||
// if trove4j is not available
|
||||
//noinspection CastCanBeRemovedNarrowingVariableType,unchecked
|
||||
FILE_HASHING_STRATEGY = (TObjectHashingStrategy<File>)FILE_HASHING_STRATEGY_temp;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user