更新 FaceRadar Autopsy 4.21.0 Netbeans 平台模块中折旧代码的最佳方法
温馨提示:
本文最后更新于 2024年04月12日,已超过 48 天没有更新。若文章内的图片失效(无法正常加载),请留言反馈或直接联系我。
我在更新一些使用尸检平台的已折旧方法时遇到的问题。
我想要在分析结果下有一个自定义属性!
我不喜欢 JavaDoc,因为它很笨拙。https://sleuthkit.org/sleuthkit/docs/jni-docs/4.12.1/deprecated.html
BlackboardArtifact artifact = file.newArtifact(BlackboardArtifact.ARTIFACT_TYPE.TSK_INTERESTING_ITEM);
BlackboardAttribute attribute = new BlackboardAttribute(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_SET_NAME.getTypeID(), PTDetectorIngestModuleFactory.getModuleName(), "PT Detected Faces");
artifact.addAttribute(attribute);
// This method is thread-safe with per ingest job reference counted
// management of shared data.
addToBlackboardPostCount(context.getJobId(), 1L);
// Fire an event to notify any listeners for blackboard postings.
ModuleDataEvent event = new ModuleDataEvent(PTDetectorIngestModuleFactory.getModuleName(), BlackboardArtifact.ARTIFACT_TYPE.TSK_INTERESTING_ITEM);
IngestServices.getInstance().fireModuleDataEvent(event);
当我清理和构建时,我得到以下信息:
Compiling 7 source files to C:\Users\cam30\OneDrive\Documents\NetBeansProjects\FaceRadar-master\build\classes
Ignoring source, target and bootclasspath as release has been set
C:\Users\cam30\OneDrive\Documents\NetBeansProjects\FaceRadar-master\src\com\sazquatch\faceradar\autopsy\FaceRadarFileIngestModule.java:108: warning: [deprecation] TSK_INTERESTING_FILE_HIT in ARTIFACT_TYPE has been deprecated
BlackboardArtifact artifact = file.newArtifact(BlackboardArtifact.ARTIFACT_TYPE.TSK_INTERESTING_FILE_HIT);
C:\Users\cam30\OneDrive\Documents\NetBeansProjects\FaceRadar-master\src\com\sazquatch\faceradar\autopsy\FaceRadarFileIngestModule.java:108: warning: [deprecation] newArtifact(ARTIFACT_TYPE) in AbstractContent has been deprecated
BlackboardArtifact artifact = file.newArtifact(BlackboardArtifact.ARTIFACT_TYPE.TSK_INTERESTING_FILE_HIT);
C:\Users\cam30\OneDrive\Documents\NetBeansProjects\FaceRadar-master\src\com\sazquatch\faceradar\autopsy\FaceRadarFileIngestModule.java:109: warning: [deprecation] BlackboardAttribute(int,String,String) in BlackboardAttribute has been deprecated
BlackboardAttribute attribute = new BlackboardAttribute(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_SET_NAME.getTypeID(), FaceRadarIngestModuleFactory.getModuleName(), "FaceRadar Detected Faces");
C:\Users\cam30\OneDrive\Documents\NetBeansProjects\FaceRadar-master\src\com\sazquatch\faceradar\autopsy\FaceRadarFileIngestModule.java:117: warning: [deprecation] TSK_INTERESTING_FILE_HIT in ARTIFACT_TYPE has been deprecated
ModuleDataEvent event = new ModuleDataEvent(FaceRadarIngestModuleFactory.getModuleName(), BlackboardArtifact.ARTIFACT_TYPE.TSK_INTERESTING_FILE_HIT);
C:\Users\cam30\OneDrive\Documents\NetBeansProjects\FaceRadar-master\src\com\sazquatch\faceradar\autopsy\FaceRadarFileIngestModule.java:118: warning: [deprecation] fireModuleDataEvent(ModuleDataEvent) in IngestServices has been deprecated
IngestServices.getInstance().fireModuleDataEvent(event);
正文到此结束
- 本文标签: 家庭宠物
- 本文链接: https://www.coder6.net/article/2197
- 版权声明: 本文由蚂蚁原创发布,转载请遵循《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》许可协议授权
热门推荐
-
浏览(193) 评论(0)