Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .sdk-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.0.0
v2.0.4
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>ai.reveng</groupId>
<artifactId>sdk</artifactId>
<version>2.0.0</version>
<version>2.0.4</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation "ai.reveng:sdk:2.0.0"
implementation "ai.reveng:sdk:2.0.4"
}
```

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'

group = 'ai.reveng'
version = '2.0.0'
version = '2.0.4'



Expand Down Expand Up @@ -171,7 +171,7 @@ mavenPublishing {
publishToMavenCentral(true)
signAllPublications()

coordinates("ai.reveng", "sdk", "2.0.0")
coordinates("ai.reveng", "sdk", "2.0.4")

pom {
name = "sdk"
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "ai.reveng",
name := "sdk",
version := "2.0.0",
version := "2.0.4",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
2 changes: 1 addition & 1 deletion docs/AnalysesCoreApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public class Example {

Gets basic analysis information

Just a random placeholder for now
Returns basic analysis information for an analysis

### Example
```java
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>sdk</artifactId>
<packaging>jar</packaging>
<name>sdk</name>
<version>2.0.0</version>
<version>2.0.4</version>
<url>https://github.com/RevEngAI/sdk-java</url>
<description>Java SDK for the RevEng.AI API</description>
<scm>
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/ai/reveng/api/AnalysesCoreApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ private okhttp3.Call getAnalysisBasicInfoValidateBeforeCall(@javax.annotation.No

/**
* Gets basic analysis information
* Just a random placeholder for now
* Returns basic analysis information for an analysis
* @param analysisId (required)
* @return BaseResponseBasic
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
Expand All @@ -609,7 +609,7 @@ public BaseResponseBasic getAnalysisBasicInfo(@javax.annotation.Nonnull Integer

/**
* Gets basic analysis information
* Just a random placeholder for now
* Returns basic analysis information for an analysis
* @param analysisId (required)
* @return ApiResponse&lt;BaseResponseBasic&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
Expand All @@ -629,7 +629,7 @@ public ApiResponse<BaseResponseBasic> getAnalysisBasicInfoWithHttpInfo(@javax.an

/**
* Gets basic analysis information (asynchronously)
* Just a random placeholder for now
* Returns basic analysis information for an analysis
* @param analysisId (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ai/reveng/invoker/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ protected void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("OpenAPI-Generator/2.0.0/java");
setUserAgent("OpenAPI-Generator/2.0.4/java");

authentications = new HashMap<String, Authentication>();
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ai/reveng/invoker/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Configuration {
public static final String VERSION = "2.0.0";
public static final String VERSION = "2.0.4";

private static final AtomicReference<ApiClient> defaultApiClient = new AtomicReference<>();
private static volatile Supplier<ApiClient> apiClientFactory = ApiClient::new;
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/ai/reveng/model/MatchedFunction.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public class MatchedFunction {

public static final String SERIALIZED_NAME_MANGLED_NAME = "mangled_name";
@SerializedName(SERIALIZED_NAME_MANGLED_NAME)
@javax.annotation.Nullable
@javax.annotation.Nonnull
private String mangledName;

public static final String SERIALIZED_NAME_DEBUG = "debug";
Expand Down Expand Up @@ -187,7 +187,7 @@ public void setFunctionVaddr(@javax.annotation.Nonnull Long functionVaddr) {
}


public MatchedFunction mangledName(@javax.annotation.Nullable String mangledName) {
public MatchedFunction mangledName(@javax.annotation.Nonnull String mangledName) {
this.mangledName = mangledName;
return this;
}
Expand All @@ -196,12 +196,12 @@ public MatchedFunction mangledName(@javax.annotation.Nullable String mangledName
* Get mangledName
* @return mangledName
*/
@javax.annotation.Nullable
@javax.annotation.Nonnull
public String getMangledName() {
return mangledName;
}

public void setMangledName(@javax.annotation.Nullable String mangledName) {
public void setMangledName(@javax.annotation.Nonnull String mangledName) {
this.mangledName = mangledName;
}

Expand Down Expand Up @@ -432,7 +432,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (!jsonObj.get("function_name").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `function_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("function_name").toString()));
}
if ((jsonObj.get("mangled_name") != null && !jsonObj.get("mangled_name").isJsonNull()) && !jsonObj.get("mangled_name").isJsonPrimitive()) {
if (!jsonObj.get("mangled_name").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `mangled_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mangled_name").toString()));
}
if (!jsonObj.get("binary_name").isJsonPrimitive()) {
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/ai/reveng/api/AnalysesCoreApiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void findSimilarFunctionsBatchTest() throws ApiException {
/**
* Gets basic analysis information
*
* Just a random placeholder for now
* Returns basic analysis information for an analysis
*
* @throws ApiException if the Api call fails
*/
Expand Down