Skip to content

Create qodana.yaml

Create qodana.yaml #2

Triggered via push August 2, 2024 15:24
Status Success
Total duration 2m 57s
Artifacts

code-quality.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

460 warnings and 5 notices
AutoCloseable used without 'try'-with-resources: xstream/src/java/com/thoughtworks/xstream/io/xml/Dom4JDriver.java#L151
'Dom4JXmlWriter' used without 'try'-with-resources statement
C-style array declaration: xstream-jmh/src/java/com/thoughtworks/xstream/benchmark/jmh/Base64Benchmark.java#L204
Local variable `data` has C-style array type declaration
C-style array declaration: xstream/src/java/com/thoughtworks/xstream/core/util/WeakCache.java#L98
Local variable `i` has C-style array type declaration
C-style array declaration: xstream-jmh/src/java/com/thoughtworks/xstream/benchmark/jmh/Base64Benchmark.java#L205
Local variable `base64` has C-style array type declaration
C-style array declaration: xstream/src/java/com/thoughtworks/xstream/io/xml/TraxSource.java#L505
Local variable `transEx` has C-style array type declaration
C-style array declaration: xstream-jmh/src/java/com/thoughtworks/xstream/benchmark/jmh/Base64Benchmark.java#L203
Local variable `lengths` has C-style array type declaration
C-style array declaration: xstream/src/java/com/thoughtworks/xstream/core/util/Base64Encoder.java#L133
Local variable `a` has C-style array type declaration
Redundant 'Collection.addAll()' call: xstream/src/java/com/thoughtworks/xstream/XStream.java#L653
'addAll()' call can be replaced with parametrized constructor call
Constant values: xstream/src/java/com/thoughtworks/xstream/io/xml/xppdom/XppDom.java#L111
Condition `null == childList` is always `false`
Constant values: xstream/src/java/com/thoughtworks/xstream/converters/extended/NamedMapConverter.java#L298
Condition `valueConverter != null` is always `true` when reached
Constant values: xstream/src/java/com/thoughtworks/xstream/io/xml/xppdom/XppDom.java#L119
Condition `null == childList` is always `false`
Constant values: xstream/src/java/com/thoughtworks/xstream/core/JVM.java#L185
Condition `stream != null` is always `true`
Constant values: xstream/src/java/com/thoughtworks/xstream/io/xml/StandardStaxDriver.java#L78
Condition `staxInputFactory != null` is always `true`
Constant values: xstream/src/java/com/thoughtworks/xstream/io/xml/StandardStaxDriver.java#L96
Condition `staxOutputFactory != null` is always `true`
Constant values: xstream/src/java/com/thoughtworks/xstream/io/xml/xppdom/XppDom.java#L137
Condition `null == childList` is always `false`
Nullability and data flow problems: xstream/src/java/com/thoughtworks/xstream/io/json/AbstractJsonWriter.java#L305
Dereference of `stackElement` may produce `NullPointerException`
Nullability and data flow problems: xstream/src/java/com/thoughtworks/xstream/converters/extended/ThrowableConverter.java#L96
Method invocation `lookupConverterForType` may produce `NullPointerException`
Nullability and data flow problems: xstream/src/java/com/thoughtworks/xstream/io/xml/AbstractDocumentReader.java#L82
Dereference of `pointer` may produce `NullPointerException`
Nullability and data flow problems: xstream/src/java/com/thoughtworks/xstream/core/util/SerializationMembers.java#L149
Method invocation `invoke` may produce `NullPointerException`
Nullability and data flow problems: xstream/src/java/com/thoughtworks/xstream/io/json/AbstractJsonWriter.java#L280
Dereference of `stack.peek()` may produce `NullPointerException`
Nullability and data flow problems: xstream/src/java/com/thoughtworks/xstream/persistence/AbstractFilePersistenceStrategy.java#L206
Dereference of `baseDirectory.list(filter)` may produce `NullPointerException`
Nullability and data flow problems: xstream/src/java/com/thoughtworks/xstream/core/util/SelfStreamingInstanceChecker.java#L73
Method invocation `lookupConverterForType` may produce `NullPointerException`
Nullability and data flow problems: xstream/src/java/com/thoughtworks/xstream/io/json/AbstractJsonWriter.java#L294
Dereference of `stack.peek()` may produce `NullPointerException`
Nullability and data flow problems: xstream/src/java/com/thoughtworks/xstream/converters/extended/FontConverter.java#L110
Method invocation `fromString` may produce `NullPointerException`
Nullability and data flow problems: xstream/src/java/com/thoughtworks/xstream/io/json/AbstractJsonWriter.java#L314
Dereference of `stack.peek()` may produce `NullPointerException`
Nullability and data flow problems: xstream/src/java/com/thoughtworks/xstream/core/util/SerializationMembers.java#L129
Method invocation `invoke` may produce `NullPointerException`
Nullability and data flow problems: xstream/src/java/com/thoughtworks/xstream/io/xml/AbstractDocumentReader.java#L63
Dereference of `pointer` may produce `NullPointerException`
Nullability and data flow problems: xstream/src/java/com/thoughtworks/xstream/converters/extended/FontConverter.java#L80
Method invocation `toString` may produce `NullPointerException`
Nullability and data flow problems: xstream/src/java/com/thoughtworks/xstream/io/xml/xppdom/XppDom.java#L162
Dereference of `childList` may produce `NullPointerException`
Nullability and data flow problems: xstream/src/java/com/thoughtworks/xstream/converters/extended/ThrowableConverter.java#L92
Method invocation `lookupConverterForType` may produce `NullPointerException`
Nullability and data flow problems: xstream/src/java/com/thoughtworks/xstream/io/json/AbstractJsonWriter.java#L262
Dereference of `stack.peek()` may produce `NullPointerException`
Nullability and data flow problems: xstream/src/java/com/thoughtworks/xstream/io/StatefulWriter.java#L112
Method invocation `contains` may produce `NullPointerException`
Nullability and data flow problems: xstream/src/java/com/thoughtworks/xstream/io/json/AbstractJsonWriter.java#L307
Dereference of `stackElement` may produce `NullPointerException`
Nullability and data flow problems: xstream/src/java/com/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter.java#L344
Method invocation `getClassLoader` may produce `NullPointerException`
Deprecated member is still used: xstream/src/java/com/thoughtworks/xstream/mapper/XStream11XmlFriendlyMapper.java#L30
Deprecated member 'XStream11XmlFriendlyMapper' is still used
Deprecated member is still used: xstream/src/java/com/thoughtworks/xstream/XStream.java#L611
Deprecated member 'useXStream11XmlFriendlyMapper' is still used
Deprecated member is still used: xstream/src/java/com/thoughtworks/xstream/mapper/AnnotationConfiguration.java#L22
Deprecated member 'AnnotationConfiguration' is still used
Deprecated member is still used: xstream/src/java/com/thoughtworks/xstream/io/ExtendedHierarchicalStreamWriter.java#L19
Deprecated member 'ExtendedHierarchicalStreamWriter' is still used
Deprecated member is still used: xstream/src/java/com/thoughtworks/xstream/io/xml/XStream11XmlFriendlyReplacer.java#L30
Deprecated member 'XStream11XmlFriendlyReplacer' is still used
Deprecated member is still used: xstream/src/java/com/thoughtworks/xstream/io/xml/XStream11XmlFriendlyReplacer.java#L22
Deprecated member 'XStream11XmlFriendlyReplacer' is still used
Deprecated member is still used: xstream/src/java/com/thoughtworks/xstream/core/JVM.java#L454
Deprecated member 'reverseFieldDefinition' is still used
Deprecated member is still used: xstream/src/java/com/thoughtworks/xstream/io/xml/SaxWriter.java#L80
Deprecated member 'SOURCE_OBJECT_LIST_PROPERTY' is still used
Deprecated member is still used: xstream/src/java/com/thoughtworks/xstream/io/ExtendedHierarchicalStreamReader.java#L19
Deprecated member 'ExtendedHierarchicalStreamReader' is still used
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/Dom4JDriver.java#L64
'AbstractXmlDriver(com.thoughtworks.xstream.io.naming.NameCoder)' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/binary/BinaryStreamReader.java#L34
'com.thoughtworks.xstream.io.ExtendedHierarchicalStreamReader' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/DomDriver.java#L63
'AbstractXmlDriver(com.thoughtworks.xstream.io.naming.NameCoder)' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/mapper/AttributeMapper.java#L99
Overrides deprecated method in 'com.thoughtworks.xstream.mapper.MapperWrapper'
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/XomDriver.java#L54
'AbstractXmlDriver(com.thoughtworks.xstream.io.naming.NameCoder)' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/SaxWriter.java#L674
'escapeXmlName(java.lang.String)' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/AbstractXppDriver.java#L38
'com.thoughtworks.xstream.io.xml.AbstractXmlDriver' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/WriterWrapper.java#L19
'com.thoughtworks.xstream.io.ExtendedHierarchicalStreamWriter' is deprecated
Deprecated API usage: xstream-jmh/src/java/com/thoughtworks/xstream/benchmark/jmh/ParserBenchmark.java#L108
'com.thoughtworks.xstream.io.xml.BEAStaxDriver' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/PrettyPrintWriter.java#L50
'com.thoughtworks.xstream.io.xml.AbstractXmlWriter' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/StaxDriver.java#L47
'com.thoughtworks.xstream.io.xml.AbstractXmlDriver' is deprecated
Deprecated API usage: xstream-jmh/src/java/com/thoughtworks/xstream/benchmark/jmh/Base64Benchmark.java#L78
'com.thoughtworks.xstream.core.util.Base64Encoder' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/core/ClassLoaderReference.java#L35
'com.thoughtworks.xstream.core.util.ClassLoaderReference' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/AbstractWriter.java#L25
'com.thoughtworks.xstream.io.ExtendedHierarchicalStreamWriter' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/DomDriver.java#L39
'com.thoughtworks.xstream.io.xml.AbstractXmlDriver' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/XStream11XmlFriendlyReplacer.java#L56
Overrides deprecated method in 'com.thoughtworks.xstream.io.xml.XmlFriendlyReplacer'
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/core/util/CustomObjectInputStream.java#L326
Overrides deprecated method in 'java.io.ObjectInputStream'
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/AbstractXmlWriter.java#L54
Overrides deprecated method in 'com.thoughtworks.xstream.io.xml.XmlFriendlyWriter'
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/AbstractXppDriver.java#L47
'AbstractXmlDriver(com.thoughtworks.xstream.io.naming.NameCoder)' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/JDomDriver.java#L39
'AbstractXmlDriver(com.thoughtworks.xstream.io.naming.NameCoder)' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/SaxWriter.java#L65
'com.thoughtworks.xstream.io.xml.AbstractXmlWriter' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/XomDriver.java#L34
'com.thoughtworks.xstream.io.xml.AbstractXmlDriver' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/SaxWriter.java#L662
'escapeXmlName(java.lang.String)' is deprecated
Deprecated API usage: xstream-benchmark/src/java/com/thoughtworks/xstream/tools/benchmark/metrics/DeserializationSpeedMetric.java#L86
Overrides deprecated method in 'com.thoughtworks.xstream.tools.benchmark.Metric'
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/Dom4JDriver.java#L38
'com.thoughtworks.xstream.io.xml.AbstractXmlDriver' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/binary/BinaryStreamWriter.java#L28
'com.thoughtworks.xstream.io.ExtendedHierarchicalStreamWriter' is deprecated
Deprecated API usage: xstream-benchmark/src/java/com/thoughtworks/xstream/tools/benchmark/metrics/SerializationSpeedMetric.java#L44
Overrides deprecated method in 'com.thoughtworks.xstream.tools.benchmark.Metric'
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/xppdom/XppDom.java#L191
'com.thoughtworks.xstream.io.xml.xppdom.Xpp3Dom' is deprecated
Deprecated API usage: xstream-benchmark/src/java/com/thoughtworks/xstream/tools/benchmark/metrics/SizeMetric.java#L38
Overrides deprecated method in 'com.thoughtworks.xstream.tools.benchmark.Metric'
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/Dom4JXmlWriter.java#L27
'com.thoughtworks.xstream.io.xml.AbstractXmlWriter' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/AbstractReader.java#L27
'com.thoughtworks.xstream.io.ExtendedHierarchicalStreamReader' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/StaxWriter.java#L28
'com.thoughtworks.xstream.io.xml.AbstractXmlWriter' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/StaxDriver.java#L65
'AbstractXmlDriver(com.thoughtworks.xstream.io.naming.NameCoder)' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/converters/extended/NamedCollectionConverter.java#L79
Overrides deprecated method in 'com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter'
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/AbstractPullReader.java#L25
'com.thoughtworks.xstream.io.xml.AbstractXmlReader' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/mapper/AnnotationMapper.java#L62
'com.thoughtworks.xstream.mapper.AnnotationConfiguration' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/AbstractDocumentReader.java#L19
'com.thoughtworks.xstream.io.xml.AbstractXmlReader' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/JDomDriver.java#L36
'com.thoughtworks.xstream.io.xml.AbstractXmlDriver' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/XStream.java#L563
'com.thoughtworks.xstream.mapper.XStream11XmlFriendlyMapper' is deprecated
Deprecated API usage: xstream-jmh/src/java/com/thoughtworks/xstream/benchmark/jmh/Base64Benchmark.java#L78
'com.thoughtworks.xstream.core.util.Base64Encoder' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/AbstractXppDomDriver.java#L48
'AbstractXmlDriver(com.thoughtworks.xstream.io.naming.NameCoder)' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/AbstractXppDomDriver.java#L39
'com.thoughtworks.xstream.io.xml.AbstractXmlDriver' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/JDomDriver.java#L46
'AbstractXmlDriver(com.thoughtworks.xstream.io.naming.NameCoder)' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/AbstractPullReader.java#L218
'unescapeXmlName(java.lang.String)' is deprecated
Deprecated API usage: xstream-jmh/src/java/com/thoughtworks/xstream/benchmark/jmh/ParserBenchmark.java#L104
'com.thoughtworks.xstream.io.xml.BEAStaxDriver' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/ReaderWrapper.java#L24
'com.thoughtworks.xstream.io.ExtendedHierarchicalStreamReader' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/AbstractDocumentWriter.java#L30
'com.thoughtworks.xstream.io.xml.AbstractXmlWriter' is deprecated
Deprecated API usage: xstream/src/java/com/thoughtworks/xstream/core/ClassLoaderReference.java#L36
'com.thoughtworks.xstream.core.util.ClassLoaderReference' is deprecated
Deprecated API usage: xstream-benchmark/src/java/com/thoughtworks/xstream/tools/benchmark/metrics/CharacterCountMetric.java#L42
Overrides deprecated method in 'com.thoughtworks.xstream.tools.benchmark.Metric'
Field may be 'final': xstream/src/java/com/thoughtworks/xstream/mapper/DefaultMapper.java#L31
Field `XSTREAM_PACKAGE_ROOT` may be 'final'
Field may be 'final': xstream/src/java/com/thoughtworks/xstream/mapper/CGLIBMapper.java#L28
Field `DEFAULT_NAMING_MARKER` may be 'final'
Inner class may be 'static': xstream-jmh/src/java/com/thoughtworks/xstream/benchmark/jmh/StringConverterBenchmark.java#L107
Inner class `SynchronizedWeakCacheStringConverter` may be 'static'
Javadoc declaration problems: xstream/src/java/com/thoughtworks/xstream/io/xml/XmlFriendlyNameCoder.java#L437
`@param escapeCharReplacement` tag description is missing
Javadoc declaration problems: xstream/src/java/com/thoughtworks/xstream/XStream.java#L1502
`@param ofType` tag description is missing
Javadoc declaration problems: xstream/src/java/com/thoughtworks/xstream/io/xml/XmlFriendlyNameCoder.java#L448
`@param dollarReplacement` tag description is missing
Javadoc declaration problems: xstream/src/java/com/thoughtworks/xstream/io/xml/XmlFriendlyNameCoder.java#L436
`@param dollarReplacement` tag description is missing
Javadoc declaration problems: xstream/src/java/com/thoughtworks/xstream/io/xml/XmlFriendlyNameCoder.java#L449
`@param escapeCharReplacement` tag description is missing
Javadoc declaration problems: xstream/src/java/com/thoughtworks/xstream/XStream.java#L1501
`@param defaultImplementation` tag description is missing
Javadoc declaration problems: xstream/src/java/com/thoughtworks/xstream/XStream.java#L701
`@param xstream` tag description is missing
Magic constant: xstream/src/java/com/thoughtworks/xstream/converters/extended/RegexPatternConverter.java#L71
Should be one of: Pattern.UNIX_LINES, Pattern.CASE_INSENSITIVE, Pattern.COMMENTS, Pattern.MULTILINE, ... or their combination
Mismatched query and update of collection: xstream/src/java/com/thoughtworks/xstream/converters/javabean/JavaBeanConverter.java#L111
Contents of collection `seenProperties` are updated, but never queried
Redundant array creation: xstream/src/java/com/thoughtworks/xstream/core/JVM.java#L102
Redundant array creation for calling varargs method
Redundant array creation: xstream/src/java/com/thoughtworks/xstream/core/JVM.java#L104
Redundant array creation for calling varargs method
Simplifiable conditional expression: xstream/src/java/com/thoughtworks/xstream/mapper/AnnotationMapper.java#L240
`o == null || processedTypes.contains(o) ? false : super.add(o)` can be simplified to 'o!=null \&\& !processedTypes.contains(o) \&\& super.add(o)'
Simplifiable conditional expression: xstream/src/java/com/thoughtworks/xstream/mapper/AnnotationMapper.java#L544
`annotatedTypes.contains(type) ? false : super.add(type)` can be simplified to '!annotatedTypes.contains(type) \&\& super.add(type)'
'size() == 0' can be replaced with 'isEmpty()': xstream/src/java/com/thoughtworks/xstream/io/xml/StaxWriter.java#L174
`prefix.length() > 0` can be replaced with '!prefix.isEmpty()'
'size() == 0' can be replaced with 'isEmpty()': xstream/src/java/com/thoughtworks/xstream/mapper/EnumMapper.java#L108
`enumConverterMap.size() > 0` can be replaced with '!enumConverterMap.isEmpty()'
'size() == 0' can be replaced with 'isEmpty()': xstream/src/java/com/thoughtworks/xstream/converters/extended/StackTraceElementConverter.java#L138
`matcher.group(5).length() == 0` can be replaced with 'matcher.group(5).isEmpty()'
'size() == 0' can be replaced with 'isEmpty()': xstream/src/java/com/thoughtworks/xstream/io/xml/xppdom/XppDom.java#L218
`0 == accumulatedValue.length()` can be replaced with 'accumulatedValue.isEmpty()'
Suspicious date format pattern: xstream/src/java/com/thoughtworks/xstream/core/util/ISO8601JavaTimeConverter.java#L107
Uppercase 'YYYY' (week year) pattern is used: probably 'yyyy' (year) was intended
Suspicious date format pattern: xstream/src/java/com/thoughtworks/xstream/core/util/ISO8601JavaTimeConverter.java#L87
Uppercase 'YYYY' (week year) pattern is used: probably 'yyyy' (year) was intended
Suspicious 'InvocationHandler' implementation: xstream/src/java/com/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter.java#L473
Method is never used in 'invoke()': it's unlikely that 'hashCode()', 'equals()' and 'toString()' are implemented correctly
Suspicious 'InvocationHandler' implementation: xstream/src/java/com/thoughtworks/xstream/converters/extended/DynamicProxyConverter.java#L141
Method is never used in 'invoke()': it's unlikely that 'hashCode()', 'equals()' and 'toString()' are implemented correctly
Synchronization on a non-final field: xstream/src/java/com/thoughtworks/xstream/mapper/EnumMapper.java#L87
Synchronization on a non-final field `enumConverterMap`
Synchronization on a non-final field: xstream/src/java/com/thoughtworks/xstream/mapper/EnumMapper.java#L109
Synchronization on a non-final field `enumConverterMap`
'Collection.toArray()' call style: xstream/src/java/com/thoughtworks/xstream/converters/basic/DateConverter.java#L85
Call to `toArray()` with pre-sized array argument 'new String\[acceptablePatterns.size()\]'
'Collection.toArray()' call style: xstream/src/java/com/thoughtworks/xstream/converters/javabean/BeanProvider.java#L179
Call to `toArray()` with pre-sized array argument 'new PropertyDescriptor\[result.size()\]'
'Collection.toArray()' call style: xstream/src/java/com/thoughtworks/xstream/converters/extended/JavaMethodConverter.java#L137
Call to `toArray()` with pre-sized array argument 'new Class\[parameterTypeList.size()\]'
'Collection.toArray()' call style: xstream/src/java/com/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter.java#L422
Call to `toArray()` with pre-sized array argument 'new Callback\[callbacks.size()\]'
'Collection.toArray()' call style: xstream/src/java/com/thoughtworks/xstream/XStream.java#L690
Call to `toArray()` with pre-sized array argument 'new Class\[types.size()\]'
'Collection.toArray()' call style: xstream/src/java/com/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter.java#L361
Call to `toArray()` with pre-sized array argument 'new Class\[interfaces.size()\]'
'Collection.toArray()' call style: xstream/src/java/com/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter.java#L210
Call to `toArray()` with pre-sized array argument 'new Callback\[list.size()\]'
'Collection.toArray()' call style: xstream/src/java/com/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter.java#L386
Call to `toArray()` with pre-sized array argument 'new Callback\[callbacksToEnhance.size()\]'
Unnecessary 'continue' statement: xstream/src/java/com/thoughtworks/xstream/io/xml/AbstractPullReader.java#L234
`continue` is unnecessary as the last statement in a loop
Unnecessary 'continue' statement: xstream/src/java/com/thoughtworks/xstream/io/xml/AbstractPullReader.java#L96
`continue` is unnecessary as the last statement in a loop
Unnecessary modifier: xstream/src/java/com/thoughtworks/xstream/io/xml/DocumentReader.java#L30
Modifier `public` is redundant for interface members
Unnecessary modifier: xstream/src/java/com/thoughtworks/xstream/core/ReferenceByIdMarshaller.java#L24
Modifier `static` is redundant for inner interfaces
Unnecessary modifier: xstream-jmh/src/java/com/thoughtworks/xstream/benchmark/jmh/Base64Benchmark.java#L174
Modifier `private` is redundant for enum constructors
Unnecessary modifier: xstream/src/java/com/thoughtworks/xstream/core/util/ObjectIdDictionary.java#L32
Modifier `static` is redundant for inner interfaces
Unnecessary modifier: xstream/src/java/com/thoughtworks/xstream/annotations/XStreamAlias.java#L38
Modifier `public` is redundant for interface members
Unnecessary modifier: xstream/src/java/com/thoughtworks/xstream/annotations/XStreamAlias.java#L34
Modifier `public` is redundant for interface members
Unnecessary modifier: xstream/src/java/com/thoughtworks/xstream/annotations/XStreamAliasType.java#L28
Modifier `public` is redundant for interface members
Unnecessary modifier: xstream/src/java/com/thoughtworks/xstream/core/util/CustomObjectInputStream.java#L36
Modifier `static` is redundant for inner interfaces
Unnecessary modifier: xstream/src/java/com/thoughtworks/xstream/converters/SingleValueConverter.java#L40
Modifier `public` is redundant for interface members
Unnecessary modifier: xstream-jmh/src/java/com/thoughtworks/xstream/benchmark/jmh/ParserBenchmark.java#L159
Modifier `private` is redundant for enum constructors
Unnecessary modifier: xstream/src/java/com/thoughtworks/xstream/converters/SingleValueConverter.java#L33
Modifier `public` is redundant for interface members
Unnecessary modifier: xstream/src/java/com/thoughtworks/xstream/core/util/Pool.java#L25
Modifier `public` is redundant for interface members
Unnecessary modifier: xstream/src/java/com/thoughtworks/xstream/annotations/XStreamInclude.java#L28
Modifier `public` is redundant for interface members
Unnecessary unicode escape sequence: xstream/src/java/com/thoughtworks/xstream/io/binary/Token.java#L53
Unicode escape sequence `\u2021` can be replaced with '‡'
Unused assignment: xstream/src/java/com/thoughtworks/xstream/io/json/AbstractJsonWriter.java#L585
The value `handleStateTransition(currentState, STATE_END_OBJECT, null, null)` assigned to `currentState` is never used
Unused assignment: xstream/src/java/com/thoughtworks/xstream/io/json/AbstractJsonWriter.java#L590
The value `handleStateTransition(currentState, STATE_ROOT, null, null)` assigned to `currentState` is never used
Unused assignment: xstream/src/java/com/thoughtworks/xstream/io/json/AbstractJsonWriter.java#L543
The value `handleStateTransition(currentState, STATE_END_OBJECT, null, null)` assigned to `currentState` is never used
Unused assignment: xstream/src/java/com/thoughtworks/xstream/io/json/AbstractJsonWriter.java#L549
The value `handleStateTransition(currentState, STATE_END_OBJECT, null, null)` assigned to `currentState` is never used
Unused assignment: xstream/src/java/com/thoughtworks/xstream/io/xml/SjsxpDriver.java#L67
Variable `exception` initializer `null` is redundant
Unused assignment: xstream/src/java/com/thoughtworks/xstream/io/json/AbstractJsonWriter.java#L357
The value `handleStateTransition(currentState, STATE_SET_VALUE, null, valueToAdd)` assigned to `currentState` is never used
Unused assignment: xstream/src/java/com/thoughtworks/xstream/core/JVM.java#L95
Variable `test` initializer `true` is redundant
Unused assignment: xstream/src/java/com/thoughtworks/xstream/io/json/AbstractJsonWriter.java#L351
The value `handleStateTransition(currentState, STATE_END_ATTRIBUTES, null, null)` assigned to `currentState` is never used
Unused assignment: xstream/src/java/com/thoughtworks/xstream/core/JVM.java#L96
Variable `unsafe` initializer `null` is redundant
Unused assignment: xstream/src/java/com/thoughtworks/xstream/io/json/AbstractJsonWriter.java#L377
The value `handleStateTransition(currentState, STATE_NEXT_ATTRIBUTE, elementToAdd, valueToAdd)` assigned to `currentState` is never used
Unused assignment: xstream/src/java/com/thoughtworks/xstream/converters/reflection/CGLIBEnhancedConverter.java#L124
Variable `callbackIndexMap` initializer `null` is redundant
Unused assignment: xstream/src/java/com/thoughtworks/xstream/io/json/AbstractJsonWriter.java#L405
The value `handleStateTransition(currentState, STATE_END_OBJECT, null, null)` assigned to `currentState` is never used
Unused assignment: xstream/src/java/com/thoughtworks/xstream/io/json/AbstractJsonWriter.java#L538
The value `handleStateTransition(currentState, STATE_START_OBJECT, elementToAdd, (mode & EXPLICIT_MODE) == 0 ? "" : null)` assigned to `currentState` is never used
Unused assignment: xstream/src/java/com/thoughtworks/xstream/io/json/AbstractJsonWriter.java#L554
The value `handleStateTransition(currentState, STATE_ROOT, null, null)` assigned to `currentState` is never used
Unused assignment: xstream/src/java/com/thoughtworks/xstream/io/json/AbstractJsonWriter.java#L329
The value `handleStateTransition(currentState, STATE_START_OBJECT, elementToAdd, null)` assigned to `currentState` is never used
Unused assignment: xstream/src/java/com/thoughtworks/xstream/io/json/AbstractJsonWriter.java#L569
The value `handleStateTransition(currentState, STATE_END_OBJECT, null, null)` assigned to `currentState` is never used
Unused assignment: xstream/src/java/com/thoughtworks/xstream/io/json/AbstractJsonWriter.java#L400
The value `handleStateTransition(currentState, STATE_ROOT, null, null)` assigned to `currentState` is never used
Unused assignment: xstream/src/java/com/thoughtworks/xstream/io/xml/SjsxpDriver.java#L84
Variable `exception` initializer `null` is redundant
Unused assignment: xstream/src/java/com/thoughtworks/xstream/io/xml/XppReader.java#L99
Variable `exception` initializer `null` is redundant
Unused assignment: xstream/src/java/com/thoughtworks/xstream/io/json/AbstractJsonWriter.java#L360
The value `handleStateTransition(currentState, STATE_START_OBJECT, elementToAdd, null)` assigned to `currentState` is never used
Unused assignment: xstream/src/java/com/thoughtworks/xstream/io/json/AbstractJsonWriter.java#L320
The value `handleStateTransition(STATE_START_ELEMENTS, STATE_START_OBJECT, elementToAdd, null)` assigned to `currentState` is never used
Unused assignment: xstream/src/java/com/thoughtworks/xstream/converters/collections/TreeSetConverter.java#L68
Variable `backingMap` initializer `null` is redundant
Unused assignment: xstream/src/java/com/thoughtworks/xstream/io/json/AbstractJsonWriter.java#L532
The value `handleStateTransition(currentState, STATE_SET_VALUE, null, valueToAdd)` assigned to `currentState` is never used
Unused assignment: xstream/src/java/com/thoughtworks/xstream/io/json/AbstractJsonWriter.java#L365
The value `handleStateTransition(currentState, requiredState, null, null)` assigned to `currentState` is never used
Vulnerable API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/JDom2Driver.java#L86
Vulnerable API usage * [CVE-2021-33813](https://devhub.checkmarx.com/cve-details/CVE-2021-33813?utm_source=jetbrains&utm_medium=referral) 7.5 Improper Restriction of XML External Entity Reference vulnerability with High severity found Results powered by [Checkmarx](https://checkmarx.com)(c)
Vulnerable API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/Dom4JDriver.java#L109
Vulnerable API usage * [CVE-2020-10683](https://devhub.checkmarx.com/cve-details/CVE-2020-10683?utm_source=jetbrains&utm_medium=referral) 9.8 Improper Restriction of XML External Entity Reference vulnerability with High severity found Results powered by [Checkmarx](https://checkmarx.com)(c)
Vulnerable API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/JDom2Driver.java#L75
Vulnerable API usage * [CVE-2021-33813](https://devhub.checkmarx.com/cve-details/CVE-2021-33813?utm_source=jetbrains&utm_medium=referral) 7.5 Improper Restriction of XML External Entity Reference vulnerability with High severity found Results powered by [Checkmarx](https://checkmarx.com)(c)
Vulnerable API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/JDom2Driver.java#L53
Vulnerable API usage * [CVE-2021-33813](https://devhub.checkmarx.com/cve-details/CVE-2021-33813?utm_source=jetbrains&utm_medium=referral) 7.5 Improper Restriction of XML External Entity Reference vulnerability with High severity found Results powered by [Checkmarx](https://checkmarx.com)(c)
Vulnerable API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/JDom2Driver.java#L111
Vulnerable API usage * [CVE-2021-33813](https://devhub.checkmarx.com/cve-details/CVE-2021-33813?utm_source=jetbrains&utm_medium=referral) 7.5 Improper Restriction of XML External Entity Reference vulnerability with High severity found Results powered by [Checkmarx](https://checkmarx.com)(c)
Vulnerable API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/Dom4JDriver.java#L135
Vulnerable API usage * [CVE-2020-10683](https://devhub.checkmarx.com/cve-details/CVE-2020-10683?utm_source=jetbrains&utm_medium=referral) 9.8 Improper Restriction of XML External Entity Reference vulnerability with High severity found Results powered by [Checkmarx](https://checkmarx.com)(c)
Vulnerable API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/Dom4JDriver.java#L122
Vulnerable API usage * [CVE-2020-10683](https://devhub.checkmarx.com/cve-details/CVE-2020-10683?utm_source=jetbrains&utm_medium=referral) 9.8 Improper Restriction of XML External Entity Reference vulnerability with High severity found Results powered by [Checkmarx](https://checkmarx.com)(c)
Vulnerable API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/Dom4JDriver.java#L174
Vulnerable API usage * [CVE-2020-10683](https://devhub.checkmarx.com/cve-details/CVE-2020-10683?utm_source=jetbrains&utm_medium=referral) 9.8 Improper Restriction of XML External Entity Reference vulnerability with High severity found Results powered by [Checkmarx](https://checkmarx.com)(c)
Vulnerable API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/Dom4JDriver.java#L99
Vulnerable API usage * [CVE-2020-10683](https://devhub.checkmarx.com/cve-details/CVE-2020-10683?utm_source=jetbrains&utm_medium=referral) 9.8 Improper Restriction of XML External Entity Reference vulnerability with High severity found Results powered by [Checkmarx](https://checkmarx.com)(c)
Vulnerable API usage: xstream/src/java/com/thoughtworks/xstream/io/xml/JDom2Driver.java#L64
Vulnerable API usage * [CVE-2021-33813](https://devhub.checkmarx.com/cve-details/CVE-2021-33813?utm_source=jetbrains&utm_medium=referral) 7.5 Improper Restriction of XML External Entity Reference vulnerability with High severity found Results powered by [Checkmarx](https://checkmarx.com)(c)
qodana
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
'ThreadLocal.set()' with null as an argument: xstream/src/java/com/thoughtworks/xstream/io/xml/xppdom/XppDomComparator.java#L56
'ThreadLocal.set()' with null as an argument may cause memory leak