Skip to content

Commit

Permalink
chore: bump required protocol version, fix small code quality issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiandoetsch committed Apr 9, 2024
1 parent 6f5faeb commit 1fec016
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/main/java/ai/deepcode/javaclient/DeepCodeRestApiImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import ai.deepcode.javaclient.responses.CreateBundleResponse;
import ai.deepcode.javaclient.responses.GetAnalysisResponse;
import ai.deepcode.javaclient.responses.GetFiltersResponse;
import com.intellij.openapi.diagnostic.Logger;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import org.jetbrains.annotations.NotNull;
Expand Down Expand Up @@ -42,6 +43,7 @@
public class DeepCodeRestApiImpl implements DeepCodeRestApi {

public static final String API_URL = "https://deeproxy.snyk.io/";
public static final @NotNull Logger LOGGER = Logger.getInstance(DeepCodeRestApiImpl.class);

private static Retrofit retrofit = buildRetrofit(API_URL, false, false);

Expand Down Expand Up @@ -79,9 +81,7 @@ private static Retrofit buildRetrofit(
SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();
builder.sslSocketFactory(sslSocketFactory, x509TrustManager);
} catch (NoSuchAlgorithmException | KeyManagementException e) {
// TODO(pavel): extract Retrofit and OkHttpClient into configuration object to simplify API
// client building.
e.printStackTrace();
LOGGER.warn("Failed to disable SSL verification. Check your JDK", e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import java.util.UUID
class SnykApplicationSettingsStateService : PersistentStateComponent<SnykApplicationSettingsStateService> {

var currentLSProtocolVersion: Int? = 0
val requiredLsProtocolVersion = 10
val requiredLsProtocolVersion = 11

var currentLSProtocolVersion: Int? = 0
var isGlobalIgnoresFeatureEnabled = false
Expand Down

0 comments on commit 1fec016

Please sign in to comment.