Skip to content

Commit

Permalink
#269: Remove deprecated methods/fields
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada committed Apr 22, 2024
1 parent 40c9975 commit eeff477
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 31 deletions.
7 changes: 7 additions & 0 deletions doc/changes/changes_17.1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ This release adds support for scalar function [`WIDTH_BUCKET`](https://docs.exas
* `ScalarFunctionCapability.WIDTH_BUCKET`
* `ScalarFunction.WIDTH_BUCKET`

## Breaking Changes

This release removes the following deprecated fields/methods from class `com.exasol.adapter.AdapterProperties`:
* Constant `EXCEPTION_HANDLING_PROPERTY`
* Method `getExceptionHandling()`
* Method `hasExceptionHandling()`

## Features

* #278: Added support for scalar function `WIDTH_BUCKET`
Expand Down
29 changes: 0 additions & 29 deletions src/main/java/com/exasol/adapter/AdapterProperties.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@ public class AdapterProperties extends AbstractAdapterProperties {
* The constant EXCLUDED_CAPABILITIES_PROPERTY.
*/
public static final String EXCLUDED_CAPABILITIES_PROPERTY = "EXCLUDED_CAPABILITIES";
/**
* The constant EXCEPTION_HANDLING_PROPERTY.
*
* @deprecated this will be removed in the next release
*/
@Deprecated(forRemoval = true)
public static final String EXCEPTION_HANDLING_PROPERTY = "EXCEPTION_HANDLING";
/**
* The constant IGNORE_ERRORS_PROPERTY.
*/
Expand Down Expand Up @@ -114,17 +107,6 @@ public String getExcludedCapabilities() {
return get(EXCLUDED_CAPABILITIES_PROPERTY);
}

/**
* Get the exception handling
*
* @return exception handling
* @deprecated this will be removed in the next release
*/
@Deprecated(forRemoval = true)
public String getExceptionHandling() {
return get(EXCEPTION_HANDLING_PROPERTY);
}

/**
* Get the list of ignored errors
*
Expand Down Expand Up @@ -229,17 +211,6 @@ public boolean hasExcludedCapabilities() {
return containsKey(EXCLUDED_CAPABILITIES_PROPERTY);
}

/**
* Check if the exception handling property is set
*
* @return <code>true</code> if exception handling property is set
* @deprecated this will be removed in the next release
*/
@Deprecated(forRemoval = true)
public boolean hasExceptionHandling() {
return containsKey(EXCEPTION_HANDLING_PROPERTY);
}

/**
* Check if the ignore errors property is set
*
Expand Down
2 changes: 0 additions & 2 deletions src/test/java/com/exasol/adapter/AdapterPropertiesTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ void testEmptyProperties() {
assertThat(AdapterProperties.emptyProperties(), equalTo(new AdapterProperties(Collections.emptyMap())));
}

@SuppressWarnings("removal") // EXCEPTION_HANDLING_PROPERTY will be removed in
// https://github.com/exasol/virtual-schema-common-java/issues/269
@ValueSource(strings = { CATALOG_NAME_PROPERTY, SCHEMA_NAME_PROPERTY, CONNECTION_NAME_PROPERTY,
DEBUG_ADDRESS_PROPERTY, LOG_LEVEL_PROPERTY, EXCLUDED_CAPABILITIES_PROPERTY, EXCEPTION_HANDLING_PROPERTY })
@ParameterizedTest
Expand Down

0 comments on commit eeff477

Please sign in to comment.