Unlock instant, AI-driven research and patent intelligence for your innovation.

Useless dependency detection method and device

A detection method, useless technology, applied in the field of software, capable of solving problems such as no automated solution

Active Publication Date: 2018-10-09
BEIJING SANKUAI ONLINE TECH CO LTD
View PDF5 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] Only analysis results, no automatic generation of corresponding solutions

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Useless dependency detection method and device
  • Useless dependency detection method and device
  • Useless dependency detection method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0111] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0112] figure 2 A schematic flowchart of a method for detecting useless dependencies according to an embodiment of the present invention is schematically shown. Such as figure 2As shown, the subject of execution of the method may be a terminal such as a mobile phone or a computer, or a server, and the method may include steps 201 to 204.

[0113] In step S201, the target class loaded when the software project is running is acqu...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses a useless dependency detection method and device. The method comprises the steps that a target class loaded in the software project running process is obtained; all dependencies of a software project are obtained from configuration files of the software project; according to all the dependencies, preset corresponding relations of the dependencies and classnames of the classes contained in all the dependencies are built, wherein the classes contained in the dependencies comprise the target class; according to the target class and the preset corresponding relations, useless dependencies in all the dependencies are detected, wherein the useless dependencies are dependencies which are not used in all the dependencies in the software project running process. According to the technical scheme, the useless dependencies in all the dependencies of the software project can be detected accurately, and accuracy and comprehensiveness of the detection results of the useless dependencies are improved.

Description

technical field [0001] The invention relates to the field of software technology, in particular to a method and device for detecting useless dependencies. Background technique [0002] Currently, dependencies used in software projects (such as Maven software projects) such as figure 1 As shown, it usually includes useful dependencies (referring to the dependencies that need to be used during the running of the project), useless dependencies (referring to the dependencies that cannot be used during the running of the project) and conflicting dependencies (referring to Dependencies are largely the same, but with different versions, such as figure 1 Dependency A in the first-level child node in and dependency A in the second-level child node, that is, conflicting dependencies with different versions). [0003] But usually, developers only pay attention to conflicting dependencies, because it may make the program run incorrectly, and rarely pay attention to useless dependencie...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36G06F8/20
CPCG06F8/20G06F11/3608
Inventor 付祥旭
Owner BEIJING SANKUAI ONLINE TECH CO LTD