Skip to content

Commit 3483672

Browse files
vladakahornace
authored andcommitted
suppress unsafe deserialization error
1 parent ae1c323 commit 3483672

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/configuration/Configuration.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,6 +1441,7 @@ public static Configuration makeXMLStringAsConfiguration(String xmlconfig) throw
14411441
return ret;
14421442
}
14431443

1444+
@SuppressWarnings("lgtm[java/unsafe-deserialization]")
14441445
private static Configuration decodeObject(InputStream in) throws IOException {
14451446
final Object ret;
14461447
final LinkedList<Exception> exceptions = new LinkedList<>();
@@ -1457,7 +1458,7 @@ private static Configuration decodeObject(InputStream in) throws IOException {
14571458

14581459
if (!exceptions.isEmpty()) {
14591460
// There was an exception during parsing.
1460-
// see {@code addGroup}
1461+
// see addGroup()
14611462
if (exceptions.getFirst() instanceof IOException) {
14621463
throw (IOException) exceptions.getFirst();
14631464
}
@@ -1466,7 +1467,7 @@ private static Configuration decodeObject(InputStream in) throws IOException {
14661467

14671468
Configuration conf = ((Configuration) ret);
14681469

1469-
// Removes all non root groups.
1470+
// Removes all non-root groups.
14701471
// This ensures that when the configuration is reloaded then the set
14711472
// contains only root groups. Subgroups are discovered again
14721473
// as follows below

0 commit comments

Comments
 (0)