{"record":{"id":"8325d1f7ffb68dd4","repo":"chinabugotech/hutool","slug":"null","errorCode":null,"errorMessage":"参数不可为null","messagePattern":"参数不可为null","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"hutool-core/src/main/java/cn/hutool/core/date/TemporalAccessorUtil.java","lineNumber":205,"sourceCode":"\t/**\n\t * 当前日期是否在日期指定范围内<br>\n\t * 起始日期和结束日期可以互换<br>\n\t * 通过includeBegin, includeEnd参数控制日期范围区间是否为开区间，例如：传入参数：includeBegin=true, includeEnd=false，\n\t * 则本方法会判断 date ∈ (beginDate, endDate] 是否成立\n\t *\n\t * @param date         被检查的日期\n\t * @param beginDate    起始日期\n\t * @param endDate      结束日期\n\t * @param includeBegin 时间范围是否包含起始日期\n\t * @param includeEnd   时间范围是否包含结束日期\n\t * @return 是否在范围内\n\t * @author FengBaoheng\n\t * @since 5.8.6\n\t */\n\tpublic static boolean isIn(TemporalAccessor date, TemporalAccessor beginDate, TemporalAccessor endDate,\n\t\t\t\t\t\t\t   boolean includeBegin, boolean includeEnd) {\n\t\tif (date == null || beginDate == null || endDate == null) {\n\t\t\tthrow new IllegalArgumentException(\"参数不可为null\");\n\t\t}\n\n\t\tfinal long thisMills = toEpochMilli(date);\n\t\tfinal long beginMills = toEpochMilli(beginDate);\n\t\tfinal long endMills = toEpochMilli(endDate);\n\t\tfinal long rangeMin = Math.min(beginMills, endMills);\n\t\tfinal long rangeMax = Math.max(beginMills, endMills);\n\n\t\t// 先判断是否满足 date ∈ (beginDate, endDate)\n\t\tboolean isIn = rangeMin < thisMills && thisMills < rangeMax;\n\n\t\t// 若不满足，则再判断是否在时间范围的边界上\n\t\tif (!isIn && includeBegin) {\n\t\t\tisIn = thisMills == rangeMin;\n\t\t}\n\n\t\tif (!isIn && includeEnd) {\n\t\t\tisIn = thisMills == rangeMax;","sourceCodeStart":187,"sourceCodeEnd":223,"githubUrl":"https://github.com/chinabugotech/hutool/blob/8870454b2a0c29cc6ffd31dcf5667c8ceb2fc442/hutool-core/src/main/java/cn/hutool/core/date/TemporalAccessorUtil.java#L187-L223","documentation":"Error \"参数不可为null\" thrown in chinabugotech/hutool.","triggerScenarios":"Thrown at hutool-core/src/main/java/cn/hutool/core/date/TemporalAccessorUtil.java:205 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass a non-null TemporalAccessor argument; null-check before calling.","Filter out null values from collections before processing."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8870454b2a0c29cc6ffd31dcf5667c8ceb2fc442","analyzedAt":"2026-08-14T04:01:12.892Z","schemaVersion":2},"datasetVersion":"2026-08-14T05:17:29.042Z"}