AI Slop Code Risk Monitor

alibaba/fastjson

SlopCodeMonitor badge for alibaba/fastjson Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

FASTJSON 2.0.x has been released, faster and more secure, recommend you upgrade.

2.2 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for alibaba/fastjson, a Java project with 25,562 GitHub stars. SynthScan examined 280,144 lines of code across 3199 source files, recording 114 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 2.2 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

2.2
Adjusted Signal
2.2
Raw Pattern Score
100%
Time Factor
2026-07-29
Last Push
25.6K
Stars
Java
Language
280.1K
Lines of Code
3.2K
Files
114
Pattern Hits
2026-10-31
Scan Date
0.02
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 1.4/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 60 finding(s).

Hallucinated Dependency & Supply Chain Risk 9.2/100 · LOW

Are imports declared and package/API names verified? 54 finding(s).

Agent Over-Engineering Ratio 0.0/100 · LOW

Are wrappers, guards, and repeated structures necessary? 0 finding(s).

PR Review Velocity Impact 10.2/100 · LOW

Which changes need focused human review? 114 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 54HIGH 0MEDIUM 0LOW 60

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 114 distinct pattern matches across 4 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hallucination Indicators54 hits · 540 pts
SeverityFileLineSnippetContext
CRITICALsrc/test/java/com/alibaba/json/test/TestASM.java105 MyClassLoader loader = new MyClassLoader(com.alibaba.fastjson.serializer.ObjectSerializer.class.getClassLoader()CODE
CRITICAL…json/test/benchmark/jdk10/StringBenchmark_jackson.java31 methodMap.put("org.openjdk.jmh.annotations.org.openjdk.jmh.annotations.StringBenchmark.prepare(aaa,bbb,com.fasteCODE
CRITICAL…alibaba/json/test/benchmark/jdk10/StringBenchmark.java25 methodMap.put("org.openjdk.jmh.annotations.org.openjdk.jmh.annotations.StringBenchmark.prepare(aaa,bbb,com.alibaCODE
CRITICALsrc/test/java/com/alibaba/json/bvt/Base64Test2.java16 String str = com.alibaba.json.test.Base64.encodeToString(bytes, true);CODE
CRITICALsrc/test/java/com/alibaba/json/bvt/Base64Test2.java22 String str = com.alibaba.json.test.Base64.encodeToString(bytes, false);CODE
CRITICALsrc/test/java/com/alibaba/json/bvt/Base64Test2.java35 String str = "\0" + com.alibaba.json.test.Base64.encodeToString(bytes, false) + "\0";CODE
CRITICALsrc/test/java/com/alibaba/json/bvt/util/Base64Test.java11 String base64Str = com.alibaba.json.test.Base64.encodeToString(bytes, false);CODE
CRITICAL…libaba/json/bvt/writeClassName/WriteClassNameTest.java12 com.alibaba.fastjson.parser.ParserConfig.getGlobalInstance().addAccept(this.getClass().getName() + ".");CODE
CRITICAL…/bvt/writeClassName/WriteClassNameTest_Collection.java15 com.alibaba.fastjson.parser.ParserConfig.global.addAccept("com.alibaba.json.bvt.writeClassName.WriteClassNameTesCODE
CRITICALsrc/test/java/com/alibaba/json/bvt/bug/Issue_748.java14 com.alibaba.fastjson.parser.ParserConfig.global.addAccept("com.alibaba.json.bvt.bug.Issue_748.");CODE
CRITICALsrc/test/java/com/alibaba/json/bvt/bug/Issue859.java21 com.alibaba.fastjson.parser.ParserConfig.global.addAccept("com.alibaba.json.bvt.bug.Bug_for_zhaoyao.");CODE
CRITICALsrc/test/java/com/alibaba/json/bvt/bug/Issue859.java27 String text = org.apache.commons.io.IOUtils.toString(gzipInputStream);CODE
CRITICALsrc/test/java/com/alibaba/json/bvt/bug/Issue585.java25 com.alibaba.fastjson.parser.ParserConfig.global.addAccept("com.alibaba.json.bvt.bug.Issue585.");CODE
CRITICALsrc/test/java/com/alibaba/json/bvt/bug/TestJSONMap.java13 com.alibaba.fastjson.parser.ParserConfig.global.addAccept("com.alibaba.json.bvt.bug.TestJSONMap.");CODE
CRITICALsrc/test/java/com/alibaba/json/bvt/bug/Issue146.java10 com.alibaba.fastjson.parser.ParserConfig.global.addAccept("com.alibaba.json.bvt.bug.Issue146.");CODE
CRITICAL…/java/com/alibaba/json/bvt/bug/Bug_for_SpitFire_6.java14 com.alibaba.fastjson.parser.ParserConfig.global.addAccept("com.alibaba.json.bvt.bug.Bug_for_SpitFire_6.");CODE
CRITICAL…t/java/com/alibaba/json/bvt/bug/Bug_for_lenolix_9.java16 com.alibaba.fastjson.parser.ParserConfig.global.addAccept("com.alibaba.json.bvt.bug.Bug_for_lenolix_9.");CODE
CRITICALsrc/test/java/com/alibaba/json/bvt/bug/Issue408.java20 com.alibaba.fastjson.parser.ParserConfig.global.addAccept("com.alibaba.json.bvt.bug.Issue408.");CODE
CRITICALsrc/test/java/com/alibaba/json/bvt/bug/Issue74.java16 String text = org.apache.commons.io.IOUtils.toString(is);CODE
CRITICAL…t/java/com/alibaba/json/bvt/bug/Bug_for_lenolix_8.java22 com.alibaba.fastjson.parser.ParserConfig.global.addAccept("com.alibaba.json.bvt.bug.Bug_for_lenolix_8.");CODE
CRITICAL…c/test/java/com/alibaba/json/bvt/bug/SerDeserTest.java32 com.alibaba.fastjson.parser.ParserConfig.global.addAccept("com.alibaba.json.bvtVO.");CODE
CRITICAL…est/java/com/alibaba/json/bvt/bug/Bug_for_zhaoyao.java13 com.alibaba.fastjson.parser.ParserConfig.global.addAccept("com.alibaba.json.bvt.bug.Bug_for_zhaoyao.");CODE
CRITICAL…t/java/com/alibaba/json/bvt/bug/Bug_for_wuyexiong.java60 String text = org.apache.commons.io.IOUtils.toString(is);CODE
CRITICAL…t/java/com/alibaba/json/bvt/bug/Bug_for_wuyexiong.java61 org.apache.commons.io.IOUtils.closeQuietly(is);CODE
CRITICAL…est/java/com/alibaba/json/bvt/bug/Bug_for_stv_liu.java13 com.alibaba.fastjson.parser.ParserConfig.global.addAccept("com.alibaba.json.bvt.bug.Bug_for_stv_liu.");CODE
CRITICAL…alibaba/json/bvt/parser/deser/MapDeserializerTest.java12 com.alibaba.fastjson.parser.ParserConfig.global.addAccept("com.alibaba.json.bvt.parser.deser.MapDeserializerTestCODE
CRITICAL…a/com/alibaba/fastjson/serializer/SerializeConfig.java584 } else if (org.w3c.dom.Node.class.isAssignableFrom(clazz)) {CODE
CRITICAL…/alibaba/fastjson/serializer/ASMSerializerFactory.java196 mw.visitLdcInsn(com.alibaba.fastjson.asm.Type.getType(desc(fieldInfo.declaringClass)));CODE
CRITICAL…/alibaba/fastjson/serializer/ASMSerializerFactory.java605 mw.visitLdcInsn(com.alibaba.fastjson.asm.Type.getType(desc(elementClass)));CODE
CRITICAL…/alibaba/fastjson/serializer/ASMSerializerFactory.java629 mw.visitLdcInsn(com.alibaba.fastjson.asm.Type.getType(desc(elementClass))); // fieldTypeCODE
CRITICAL…/alibaba/fastjson/serializer/ASMSerializerFactory.java647 mw.visitLdcInsn(com.alibaba.fastjson.asm.Type.getType(desc(elementClass))); // fieldTypeCODE
CRITICAL…/alibaba/fastjson/serializer/ASMSerializerFactory.java665 mw.visitLdcInsn(com.alibaba.fastjson.asm.Type.getType(desc((Class<?>) elementType)));CODE
CRITICAL…/alibaba/fastjson/serializer/ASMSerializerFactory.java708 mw.visitLdcInsn(com.alibaba.fastjson.asm.Type.getType(desc(fieldClass)));CODE
CRITICAL…/alibaba/fastjson/serializer/ASMSerializerFactory.java725 mw.visitLdcInsn(com.alibaba.fastjson.asm.Type.getType(desc(fieldClass))); // fieldTypeCODE
CRITICAL…/alibaba/fastjson/serializer/ASMSerializerFactory.java737 mw.visitLdcInsn(com.alibaba.fastjson.asm.Type.getType(desc(fieldClass))); // fieldTypeCODE
CRITICAL…/alibaba/fastjson/serializer/ASMSerializerFactory.java1101 mw.visitLdcInsn(com.alibaba.fastjson.asm.Type.getType(desc((Class<?>) fieldInfo.fieldClass)));CODE
CRITICAL…/alibaba/fastjson/serializer/ASMSerializerFactory.java1426 mw.visitLdcInsn(com.alibaba.fastjson.asm.Type.getType(desc(elementClass)));CODE
CRITICAL…/alibaba/fastjson/serializer/ASMSerializerFactory.java1453 mw.visitLdcInsn(com.alibaba.fastjson.asm.Type.getType(desc(elementClass))); // fieldTypeCODE
CRITICAL…/alibaba/fastjson/serializer/ASMSerializerFactory.java1470 mw.visitLdcInsn(com.alibaba.fastjson.asm.Type.getType(desc(elementClass))); // fieldTypeCODE
CRITICAL…/alibaba/fastjson/serializer/ASMSerializerFactory.java1491 mw.visitLdcInsn(com.alibaba.fastjson.asm.Type.getType(desc((Class<?>) elementType)));CODE
CRITICAL…/alibaba/fastjson/serializer/ASMSerializerFactory.java1613 mw.visitLdcInsn(com.alibaba.fastjson.asm.Type.getType(desc(fieldClass)));CODE
CRITICAL…/alibaba/fastjson/serializer/ASMSerializerFactory.java1683 mw.visitLdcInsn(com.alibaba.fastjson.asm.Type.getType(desc(String.class)));CODE
CRITICAL…/alibaba/fastjson/serializer/ASMSerializerFactory.java2082 mw.visitLdcInsn(com.alibaba.fastjson.asm.Type.getType(desc(itemType)));CODE
CRITICAL…/alibaba/fastjson/serializer/ASMSerializerFactory.java2104 mw.visitLdcInsn(com.alibaba.fastjson.asm.Type.getType(desc(fieldInfo.fieldClass)));CODE
CRITICAL…stjson/parser/deserializer/ASMDeserializerFactory.java335 mw.visitLdcInsn(com.alibaba.fastjson.asm.Type.getType(desc(fieldClass)));CODE
CRITICAL…stjson/parser/deserializer/ASMDeserializerFactory.java383 mw.visitLdcInsn(com.alibaba.fastjson.asm.Type.getType(desc(fieldClass)));CODE
CRITICAL…stjson/parser/deserializer/ASMDeserializerFactory.java446 mw.visitLdcInsn(com.alibaba.fastjson.asm.Type.getType(desc(itemClass)));CODE
CRITICAL…stjson/parser/deserializer/ASMDeserializerFactory.java1022 mw.visitLdcInsn(com.alibaba.fastjson.asm.Type.getType(desc(fieldClass))); // castCODE
CRITICAL…stjson/parser/deserializer/ASMDeserializerFactory.java1373 mw.visitLdcInsn(com.alibaba.fastjson.asm.Type.getType(desc(itemType)));CODE
CRITICAL…stjson/parser/deserializer/ASMDeserializerFactory.java1449 mw.visitLdcInsn(com.alibaba.fastjson.asm.Type.getType(desc(itemType)));CODE
CRITICAL…stjson/parser/deserializer/ASMDeserializerFactory.java1609 mw.visitLdcInsn(com.alibaba.fastjson.asm.Type.getType(desc(itemType)));CODE
CRITICAL…stjson/parser/deserializer/ASMDeserializerFactory.java1726 mw.visitLdcInsn(com.alibaba.fastjson.asm.Type.getType(desc(fieldInfo.fieldClass)));CODE
CRITICAL…stjson/parser/deserializer/ASMDeserializerFactory.java1747 mw.visitLdcInsn(com.alibaba.fastjson.asm.Type.getType(desc(fieldInfo.fieldClass)));CODE
CRITICAL…stjson/parser/deserializer/ASMDeserializerFactory.java1773 mw.visitLdcInsn(com.alibaba.fastjson.asm.Type.getType(desc(fieldInfo.fieldClass)));CODE
Over-Commented Block40 hits · 40 pts
SeverityFileLineSnippetContext
LOW…a/com/alibaba/json/demo/hibernate/LazyLoadingTest.java41 System.out.println("--- JSON ---");COMMENT
LOW…a/com/alibaba/json/demo/hibernate/LazyLoadingTest.java61 }COMMENT
LOW…/alibaba/json/demo/hibernate/ForceLazyLoadingTest.java41// /*COMMENT
LOWsrc/test/java/com/alibaba/json/test/A1.java21 String json = JSON.toJSONString(obj, SerializerFeature.BrowserCompatible);COMMENT
LOWsrc/test/java/com/alibaba/json/test/TestASM.java21 // ClassWriter cw = new ClassWriter(0);COMMENT
LOWsrc/test/java/com/alibaba/json/test/FNVHashTest.java21 // Map<Long, char[]> map = new HashMap<Long, char[]>(COUNT);COMMENT
LOWsrc/test/java/com/alibaba/json/test/FNVHashTest.java41// Long hash = bkdr_hash(chars);COMMENT
LOW…ava/com/alibaba/json/test/benchmark/BenchmarkMain.java21 //COMMENT
LOW…ava/com/alibaba/json/test/benchmark/BenchmarkMain.java41 // executor.getCaseList().add(new IntArray1000Decode());COMMENT
LOW…m/alibaba/json/test/benchmark/basic/LongBenchmark.java21 public static void main(String[] args) throws Exception {COMMENT
LOW…m/alibaba/json/test/benchmark/basic/DateBenchmark.java21// model.v1 = new Random().nextDouble();COMMENT
LOW…alibaba/json/test/benchmark/basic/DoubleBenchmark.java21COMMENT
LOW…m/alibaba/json/test/benchmark/basic/UUIDBenchmark.java21// Model model = new Model();COMMENT
LOWsrc/test/java/com/alibaba/json/bvt/SqlDateTest1.java41// java.sql.Date ds = new java.sql.Date(d.getTime());COMMENT
LOW…st/java/com/alibaba/json/bvt/issue_2100/Issue2156.java21// assertEquals("\"2018-07-15\"", str);COMMENT
LOW…r/SerializeWriterTest_BrowserSecure_6_name_script.java21 }COMMENT
LOW…r/SerializeWriterTest_BrowserSecure_6_name_script.java41// for (int i = 0; i < 500; i++) {COMMENT
LOW…va/com/alibaba/json/bvt/path/JSONPath_10_contains.java61//// String json = FileUtils.readFileToString(file);COMMENT
LOW…c/test/java/com/alibaba/json/bvt/path/JSONPath_11.java41//// String json = FileUtils.readFileToString(file);COMMENT
LOWsrc/test/java/com/alibaba/json/bvt/path/JSONPath_6.java21 }COMMENT
LOW…st/java/com/alibaba/json/bvt/issue_1300/Issue1371.java41//COMMENT
LOW…st/java/com/alibaba/json/bvt/issue_1300/Issue1371.java61// String oldStyleJson = "{1:\"abc\", 2:\"cde\"}";COMMENT
LOW…t/java/com/alibaba/json/bvt/bug/Bug_for_Exception.java21// assertEquals(RuntimeException.class, throwable.getClass());COMMENT
LOW…t/java/com/alibaba/json/bvt/bug/Bug_for_issue_318.java41 pa.setManagers(managers);COMMENT
LOW…alibaba/json/bvt/parser/error/ParseErrorTest_date.java41// Assert.assertNotNull(error);COMMENT
LOW…st/java/com/alibaba/json/bvt/issue_2700/Issue2743.java21 // 场景:验证数字数组COMMENT
LOW…st/java/com/alibaba/json/bvt/issue_2700/Issue2743.java41// assertArrayEquals(strs, strs[0].split(strArrayRegex));COMMENT
LOW…st/java/com/alibaba/json/bvt/issue_1200/Issue1225.java21// assertEquals("2", JSON.parseObject("{\"data\":[\"1\",\"2\",\"3\"]}",COMMENT
LOWsrc/main/java/com/alibaba/fastjson/JSONPath.java2581 array = (JSONArray) context.object;COMMENT
LOWsrc/main/java/com/alibaba/fastjson/JSONPath.java2601// lexer.nextToken();COMMENT
LOWsrc/main/java/com/alibaba/fastjson/JSONPath.java2621// }COMMENT
LOW…a/com/alibaba/fastjson/serializer/SerializeWriter.java201COMMENT
LOW…c/main/java/com/alibaba/fastjson/asm/MethodWriter.java121 }COMMENT
LOWsrc/main/java/com/alibaba/fastjson/util/RyuFloat.java1// Copyright 2018 Ulf AdamsCOMMENT
LOWsrc/main/java/com/alibaba/fastjson/util/RyuDouble.java1// Copyright 2018 Ulf AdamsCOMMENT
LOW…main/java/com/alibaba/fastjson/parser/JSONScanner.java1301// if (type.isAssignableFrom(HashSet.class)) {COMMENT
LOW…in/java/com/alibaba/fastjson/parser/JSONLexerBase.java1681// list = new HashSet<String>();COMMENT
LOW…in/java/com/alibaba/fastjson/parser/JSONLexerBase.java2741 chLocal = charAt(bp + (offset++));COMMENT
LOW…stjson/parser/deserializer/ASMDeserializerFactory.java981 , "(L" + JSONLexerBase + ";[C" + desc(ObjectDeserializer.class) + ")Ljava/lang/Enum;");COMMENT
LOW…stjson/parser/deserializer/ASMDeserializerFactory.java1001// mw.visitVarInsn(ASTORE, context.var(fieldInfo.name + "_asm_enumName"));COMMENT
Verbosity Indicators10 hits · 18 pts
SeverityFileLineSnippetContext
LOWsrc/main/java/com/alibaba/fastjson/util/RyuFloat.java120 // Step 1: Decode the floating point number, and unify normalized and subnormal cases.COMMENT
LOW⚡src/main/java/com/alibaba/fastjson/util/RyuFloat.java186 // Step 2: Determine the interval of legal decimal representations.COMMENT
LOW⚡src/main/java/com/alibaba/fastjson/util/RyuFloat.java193 // Step 3: Convert to a decimal power base using 128-bit arithmetic.COMMENT
LOWsrc/main/java/com/alibaba/fastjson/util/RyuFloat.java288 // Step 4: Find the shortest decimal representation in the interval of legal representations.COMMENT
LOWsrc/main/java/com/alibaba/fastjson/util/RyuFloat.java349 // Step 5: Print the decimal representation.COMMENT
LOWsrc/main/java/com/alibaba/fastjson/util/RyuDouble.java81 // Step 1: Decode the floating point number, and unify normalized and subnormal cases.COMMENT
LOW⚡src/main/java/com/alibaba/fastjson/util/RyuDouble.java149 // Step 2: Determine the interval of legal decimal representations.COMMENT
LOW⚡src/main/java/com/alibaba/fastjson/util/RyuDouble.java157 // Step 3: Convert to a decimal power base using 128-bit arithmetic.COMMENT
LOWsrc/main/java/com/alibaba/fastjson/util/RyuDouble.java392 // Step 4: Find the shortest decimal representation in the interval of legal representations.COMMENT
LOWsrc/main/java/com/alibaba/fastjson/util/RyuDouble.java500 // Step 5: Print the decimal representation.COMMENT
Structural Annotation Overuse10 hits · 18 pts
SeverityFileLineSnippetContext
LOWsrc/main/java/com/alibaba/fastjson/util/RyuFloat.java120 // Step 1: Decode the floating point number, and unify normalized and subnormal cases.COMMENT
LOW⚡src/main/java/com/alibaba/fastjson/util/RyuFloat.java186 // Step 2: Determine the interval of legal decimal representations.COMMENT
LOW⚡src/main/java/com/alibaba/fastjson/util/RyuFloat.java193 // Step 3: Convert to a decimal power base using 128-bit arithmetic.COMMENT
LOWsrc/main/java/com/alibaba/fastjson/util/RyuFloat.java288 // Step 4: Find the shortest decimal representation in the interval of legal representations.COMMENT
LOWsrc/main/java/com/alibaba/fastjson/util/RyuFloat.java349 // Step 5: Print the decimal representation.COMMENT
LOWsrc/main/java/com/alibaba/fastjson/util/RyuDouble.java81 // Step 1: Decode the floating point number, and unify normalized and subnormal cases.COMMENT
LOW⚡src/main/java/com/alibaba/fastjson/util/RyuDouble.java149 // Step 2: Determine the interval of legal decimal representations.COMMENT
LOW⚡src/main/java/com/alibaba/fastjson/util/RyuDouble.java157 // Step 3: Convert to a decimal power base using 128-bit arithmetic.COMMENT
LOWsrc/main/java/com/alibaba/fastjson/util/RyuDouble.java392 // Step 4: Find the shortest decimal representation in the interval of legal representations.COMMENT
LOWsrc/main/java/com/alibaba/fastjson/util/RyuDouble.java500 // Step 5: Print the decimal representation.COMMENT