Software code change method and apparatus

US12307228B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12307228-B2
Application numberUS-202217678625-A
CountryUS
Kind codeB2
Filing dateFeb 23, 2022
Priority dateAug 26, 2019
Publication dateMay 20, 2025
Grant dateMay 20, 2025

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

In a software code change method, an apparatus determines to-be-changed software code and change configuration information according to an instruction of a user. The apparatus selects, from stored changers based on the change configuration information, a plurality of changers to be called to implement changes to the software code, and determines a calling sequence of the plurality of changers and sets attributes of each changer. The apparatus then sequentially calls the plurality of changers according to the calling sequence and based on the attributes of each changer to make changes to the software code.

First claim

Opening claim text (preview).

What is claimed is: 1. A software code change method performed by a change apparatus, comprising: obtaining software code and change configuration information from a user in a library upgrade operation or a software code format change operation, wherein the change configuration information comprises multiple to-be-changed code elements in the software code, change manners of the multiple to-be-changed code elements, and multiple changed code elements corresponding to the multiple to-be-changed code elements; and sequentially calling the plurality of changers according to the calling sequence to update the software code or change the format of the software code, wherein each changer is configured to change selected to-be-changed code elements in the software code, the selected to-be-changed code elements are of a type corresponding to said each changer, and the changers correspond respectively to different types of code elements, wherein the calling sequence of the plurality of changers is based on the change configuration information, an input of a first called changer of the plurality of changers is the software code, and changed software code of the first called changer is input into a subsequently called changer of the plurality of changers, wherein when there are conflicting changers in the plurality of changers, a change mode for changing the software code is a serial change mode or a partial serial or partial parallel change mode. 2. The method according to claim 1 , wherein a changer of the plurality of changers performs direct change content and delayed change content, and the step of sequentially calling the plurality of changers comprises: calling the changer to apply the direct change content as input into the changer; and calling the changer again to apply the delayed change content after calling a last changer in the calling sequence. 3. The method according to claim 2 , wherein the change configuration information further comprises attributes of each changer, and an attribute of said each changer indicates processing performed by each changer on a change on a target line in the software code. 4. The method according to claim 2 , wherein before the step of sequentially calling the plurality of changers, the method further comprises: determining attributes of each changer based on the calling sequence of the plurality of changers, wherein an attribute of said each changer indicates processing performed by said each changer on a change on a target line in the software code. 5. The method according to claim 2 , further comprising: determining the direct change content of the changer based on attributes of the changer. 6. The method according to claim 5 , wherein the step of determining the direct change content determines the direct change content of the changer based on a first attribute of the changer, wherein the first attribute of the changer indicates retention or deletion of a change on a first target line of the software code, and the first target line is a line on which the changer and a changer called prior to the changer both change the software code. 7. The method according to claim 5 , wherein the step of determining the direct change content of the changer comprises: determining the direct change content of the changer based on a second attribute of the changer, wherein the second attribute indicates retention or deletion of a change on a second target line of the software code, and the second target line is a line on which the changer changes the software code and the changer called prior to the changer does not change the software code. 8. The method according to claim 1 , further comprising: storing an analysis result of the first called changer on the software code, wherein the analysis result comprises a position of each code element in the software code, wherein the subsequently called changer of the plurality of changers reads the stored analysis result and changes the software code. 9. The method according to claim 1 , further comprising: outputting changed software code generated after the plurality of changers change the software code, and displaying change positions and change content of changes performed on the software code by the plurality of changers. 10. An apparatus, comprising: a communication interface; a memory storing executable instructions; and a processor configured to execute the executable instructions to: obtain software code and change configuration information from a user in a library upgrade operation or a software code format change operation, wherein the change configuration information comprises multiple to-be-changed code elements in the software code, multiple change manner of the to-be-changed code elements, and multiple changed code elements corresponding to the multiple to-be-changed code elements; and sequentially call the plurality of changers based on the calling sequence of the plurality of changers to update the software code or change the format of the software code, wherein each changer is configured to change selected to-be-changed code elements in the software code, the selected to-be-changed code elements are of a type corresponding to said each changer, and the changers correspond respectively to different types of code elements, wherein the calling sequence of the plurality of changers is based on the change configuration information, an input of a first called changer of the plurality of changers is the software code, and changed software code of the first called changer is input into a subsequently called changer of the plurality of changers, wherein when there are conflicting changers in the plurality of changers, a change mode for changing the software code is a serial change mode or a partial serial or partial parallel change mode. 11. The apparatus according to claim 10 , wherein a changer performs direct change content and delayed change content, and wherein the processor is configured to sequentially call the plurality of changers by: calling the changer according to the calling sequence to apply the direct change content to the software code; calling the changer again to apply the delayed change content after calling a last changer in the calling sequence. 12. The apparatus according to claim 11 , wherein the change configuration information further comprises attributes of each changer, and an attribute of said each changer indicates processing performed by each changer on a change on a target line in the software code. 13. The apparatus according to claim 11 , wherein before sequentially calling the plurality of changers, the processor is configured to execute the executable instructions to: determine attributes of each changer based on the calling sequence of the plurality of changers, wherein an attribute of said each changer indicates processing performed by said each changer on a change on a target line in the software code. 14. The apparatus according to claim 11 , wherein the processor is configured to further execute the executable instructions to: determine the direct change content of the changer based on attributes of the changer. 15. The apparatus according to claim 14 , wherein the processor is configured to determine the direct change content of the changer based on a first attribute of the changer, wherein the first attribute of the changer indicates retention or deletion of a change on a first target line of the software code, and the first target line is a line on which the changer and a changer called prior to the changer both change the software code. 16. The apparatus according t

Assignees

Inventors

Classifications

  • Code refactoring · CPC title

  • G06F8/65Primary

    Updates (security arrangements therefor G06F21/57) · CPC title

  • G06F8/71Primary

    Version control (security arrangements therefor G06F21/57); Configuration management · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12307228B2 cover?
In a software code change method, an apparatus determines to-be-changed software code and change configuration information according to an instruction of a user. The apparatus selects, from stored changers based on the change configuration information, a plurality of changers to be called to implement changes to the software code, and determines a calling sequence of the plurality of changers a…
Who is the assignee on this patent?
Huawei Cloud Computing Tech Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06F8/65. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue May 20 2025 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 4 related publications on this page (citations in our corpus or others sharing the same primary CPC).