Skip to content

Commit

Permalink
Fixes a refactoring where 'empty' was accidentally renamed to 'unknown'
Browse files Browse the repository at this point in the history
in too many places.
  • Loading branch information
gsteinacker committed May 26, 2018
1 parent c0d877c commit 2bab2e6
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 93 deletions.
17 changes: 0 additions & 17 deletions synapse-aws/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1 @@
/*
* This settings file was generated by the Gradle 'init' task.
*
* The settings file is used to specify which projects to include in your build.
* In a single project build this file can be unknown or even removed.
*
* Detailed information about configuring a multi-project build in Gradle can be found
* in the user guide at https://docs.gradle.org/4.0/userguide/multi_project_builds.html
*/

/*
// To declare projects as part of a multi-project build use the 'include' method
include 'shared'
include 'api'
include 'services:webservice'
*/

rootProject.name = 'synapse'
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ private Record createEmptyRecord() {
.partitionKey(String.valueOf(nextKey++))
.approximateArrivalTimestamp(clock.instant())
.data(ByteBuffer.allocateDirect(0))
.sequenceNumber("sequence-" + "unknown")
.sequenceNumber("sequence-empty")
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void shouldCompactData() throws Exception {
//when write additional data with partially existing ids
writeToStream(INTEGRATION_TEST_STREAM, "integrationtest-stream.txt");

//Write an unknown object for key 100000 - should be removed during compaction
//Write an empty object for key 100000 - should be removed during compaction
kinesisClient.putRecord(PutRecordRequest.builder().streamName(INTEGRATION_TEST_STREAM).partitionKey("100000").data(EMPTY_BYTE_BUFFER).build());


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private List<PutRecordsRequestEntry> createFakeRecords() {

public void putRecords(String channelName, List<PutRecordsRequestEntry> records) {
if (records.isEmpty()) {
throw new IllegalArgumentException("records must not be unknown");
throw new IllegalArgumentException("records must not be empty");
}

PutRecordsRequest putRecordsRequest = PutRecordsRequest.builder()
Expand Down
17 changes: 0 additions & 17 deletions synapse-core/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1 @@
/*
* This settings file was generated by the Gradle 'init' task.
*
* The settings file is used to specify which projects to include in your build.
* In a single project build this file can be unknown or even removed.
*
* Detailed information about configuring a multi-project build in Gradle can be found
* in the user guide at https://docs.gradle.org/4.0/userguide/multi_project_builds.html
*/

/*
// To declare projects as part of a multi-project build use the 'include' method
include 'shared'
include 'api'
include 'services:webservice'
*/

rootProject.name = 'synapse'
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private MessageInterceptorRegistration(final Pattern channelNamePattern,
this.interceptor = requireNonNull(interceptor);
this.enabledEndpointTypes = requireNonNull(enabledEndpointTypes);
if (enabledEndpointTypes.isEmpty()) {
throw new IllegalArgumentException("The set of enabled endpoint types must not be unknown");
throw new IllegalArgumentException("The set of enabled endpoint types must not be empty");
}
}

Expand All @@ -121,13 +121,13 @@ public MessageInterceptor getInterceptor() {
* Returns {@code true} if the registration is matching the given {@code channelName} and {@code EndpointType},
* false otherwise.
*
* @param channelName the name of the channel
* @param channelNamePattern the regexp used to match channel names
* @param endpointType the {@link EndpointType} of the channel
* @return boolean
*/
public boolean isEnabledFor(final String channelName,
public boolean isEnabledFor(final String channelNamePattern,
final EndpointType endpointType) {
return enabledEndpointTypes.contains(endpointType) && channelNamePattern.matcher(channelName).matches();
return enabledEndpointTypes.contains(endpointType) && this.channelNamePattern.matcher(channelNamePattern).matches();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

/**
* Thread-safe in-memory implementation of a circular MessageStore that is storing all messages in insertion order
* with a configurable unknown capacity.
* with a configurable capacity.
*
* <p>Each time an element is added to a full message store, the message store automatically removes its head element.
*/
Expand Down
17 changes: 0 additions & 17 deletions synapse-edison/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1 @@
/*
* This settings file was generated by the Gradle 'init' task.
*
* The settings file is used to specify which projects to include in your build.
* In a single project build this file can be unknown or even removed.
*
* Detailed information about configuring a multi-project build in Gradle can be found
* in the user guide at https://docs.gradle.org/4.0/userguide/multi_project_builds.html
*/

/*
// To declare projects as part of a multi-project build use the 'include' method
include 'shared'
include 'api'
include 'services:webservice'
*/

rootProject.name = 'synapse'
17 changes: 0 additions & 17 deletions synapse-examples/example-consumer/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1 @@
/*
* This settings file was generated by the Gradle 'init' task.
*
* The settings file is used to specify which projects to include in your build.
* In a single project build this file can be unknown or even removed.
*
* Detailed information about configuring a multi-project build in Gradle can be found
* in the user guide at https://docs.gradle.org/4.0/userguide/multi_project_builds.html
*/

/*
// To declare projects as part of a multi-project build use the 'include' method
include 'shared'
include 'api'
include 'services:webservice'
*/

rootProject.name = 'synapse-examples'
17 changes: 0 additions & 17 deletions synapse-examples/example-producer/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1 @@
/*
* This settings file was generated by the Gradle 'init' task.
*
* The settings file is used to specify which projects to include in your build.
* In a single project build this file can be unknown or even removed.
*
* Detailed information about configuring a multi-project build in Gradle can be found
* in the user guide at https://docs.gradle.org/4.0/userguide/multi_project_builds.html
*/

/*
// To declare projects as part of a multi-project build use the 'include' method
include 'shared'
include 'api'
include 'services:webservice'
*/

rootProject.name = 'synapse-examples'

0 comments on commit 2bab2e6

Please sign in to comment.