Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Use POJO instead of generic JsonElement
- Loading branch information
1 parent
3d6f9c7
commit 28736e7
Showing
3 changed files
with
79 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
.../java/com/synopsys/integration/detectable/detectables/go/gomod/model/GoListUJsonData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package com.synopsys.integration.detectable.detectables.go.gomod.model; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
public class GoListUJsonData { | ||
|
||
@SerializedName("Path") | ||
private String path; | ||
|
||
@SerializedName("Version") | ||
private String version; | ||
|
||
@SerializedName("Replace") | ||
private ReplaceData replace; | ||
|
||
public String getPath() { | ||
return path; | ||
} | ||
|
||
public void setPath(final String path) { | ||
this.path = path; | ||
} | ||
|
||
public String getVersion() { | ||
return version; | ||
} | ||
|
||
public void setVersion(final String version) { | ||
this.version = version; | ||
} | ||
|
||
public ReplaceData getReplace() { | ||
return replace; | ||
} | ||
|
||
public void setReplace(final ReplaceData replace) { | ||
this.replace = replace; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...main/java/com/synopsys/integration/detectable/detectables/go/gomod/model/ReplaceData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.synopsys.integration.detectable.detectables.go.gomod.model; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
public class ReplaceData { | ||
|
||
@SerializedName("Path") | ||
private String path; | ||
|
||
@SerializedName("Version") | ||
private String version; | ||
|
||
public String getPath() { | ||
return path; | ||
} | ||
|
||
public void setPath(final String path) { | ||
this.path = path; | ||
} | ||
|
||
public String getVersion() { | ||
return version; | ||
} | ||
|
||
public void setVersion(final String version) { | ||
this.version = version; | ||
} | ||
} |