Skip to content

Commit

Permalink
Changes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
kaufco committed Jan 22, 2025
1 parent c37900c commit dee9f0a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
public interface NewArchitectureData {

/**
* Adds a new file slice graph to the architecture data.
* Adds a new graph to the architecture data.
*/
NewFileSliceGraph newFileSliceGraph();
NewGraph newGraph();

/**
* Save the architecture data.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,25 @@
import org.sonar.api.Beta;

/**
* Represents a file slice graph recorded by the architecture sensor.
* Represents a graph recorded by the architecture sensor.
*/
public interface NewFileSliceGraph {
public interface NewGraph {

/**
* Sets the source code language for which this file slice graph was recorded.
* Sets the source code language for which this graph was recorded.
*
* @param language source code language (`java`, `javascript`, ...)
* @param languageKey source code language
*/
@Beta
NewFileSliceGraph setLanguage(String language);
NewGraph setLanguage(String languageKey);

/**
* Sets the graph data for this file slice graph from the given byte array.
* Sets the data for this graph.
* This method is for internal use only.
* The concrete data format is not nearer specified while prone to change in the future, it is irrelevant for the DB side.
* There must be a common contract between the analyzer side and the UI side.
* The concrete data model is not nearer specified. There must be a common contract between the analyzer and the UI side.
*
* @param bytes graph data
* @param json data for this graph in JSON format.
*/
@Beta
NewFileSliceGraph setData(byte[] bytes);
NewGraph setData(String json);
}

0 comments on commit dee9f0a

Please sign in to comment.