Skip to content

Commit d00d58a

Browse files
Remove unnecessary checks from ArrayInfo
1 parent dabfc62 commit d00d58a

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ apply plugin: 'java'
2727
apply plugin: 'com.diffplug.spotless'
2828

2929
group 'io.tiledb'
30-
version = '0.0.7-SNAPSHOT'
30+
version = '0.0.8-SNAPSHOT'
3131

3232
repositories {
3333
mavenCentral()
@@ -157,8 +157,8 @@ dependencies {
157157
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
158158
implementation group: 'org.apache.arrow', name: 'arrow-vector', version: '9.0.0'
159159
implementation group: 'org.apache.arrow', name: 'arrow-compression', version: '9.0.0'
160+
implementation group: 'org.apache.arrow', name: 'arrow-memory-netty', version: '9.0.0'
160161
implementation 'io.tiledb:tiledb-java:0.13.6'
161-
runtimeOnly group: 'org.apache.arrow', name: 'arrow-memory-netty', version: '9.0.0'
162162
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
163163
testImplementation 'org.mockito:mockito-core:3.12.4'
164164
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'

src/main/java/io/tiledb/cloud/rest_api/model/ArrayInfo.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -948,15 +948,15 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException {
948948
throw new IllegalArgumentException(String.format("Expected the field `tiledb_uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tiledb_uri").toString()));
949949
}
950950
// ensure the json data is an array
951-
if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonArray()) {
952-
throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString()));
953-
}
954-
if (jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonPrimitive()) {
955-
throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString()));
956-
}
957-
if (jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonPrimitive()) {
958-
throw new IllegalArgumentException(String.format("Expected the field `license_text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_text").toString()));
959-
}
951+
// if (jsonObj.get("tags") != null && !jsonObj.get("tags").isJsonArray()) {
952+
// throw new IllegalArgumentException(String.format("Expected the field `tags` to be an array in the JSON string but got `%s`", jsonObj.get("tags").toString()));
953+
// }
954+
// if (jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonPrimitive()) {
955+
// throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString()));
956+
// }
957+
// if (jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonPrimitive()) {
958+
// throw new IllegalArgumentException(String.format("Expected the field `license_text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_text").toString()));
959+
// }
960960
}
961961

962962
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {

0 commit comments

Comments
 (0)