-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Style] Fix line lengths in action.admin.indices #34890
Conversation
Clean up lines over 140 characters in the the `org.elasticsearch.action.admin.indices` packages
Pinging @elastic/es-core-infra |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except for 24 place I'd like you to hit tab one extra time so the class body doesn't mix in with the class declaration.
@@ -22,7 +22,8 @@ | |||
import org.elasticsearch.action.support.broadcast.BroadcastOperationRequestBuilder; | |||
import org.elasticsearch.client.ElasticsearchClient; | |||
|
|||
public class ClearIndicesCacheRequestBuilder extends BroadcastOperationRequestBuilder<ClearIndicesCacheRequest, ClearIndicesCacheResponse, ClearIndicesCacheRequestBuilder> { | |||
public class ClearIndicesCacheRequestBuilder | |||
extends BroadcastOperationRequestBuilder<ClearIndicesCacheRequest, ClearIndicesCacheResponse, ClearIndicesCacheRequestBuilder> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you indent this one more time so it doesn't line up with the class body?
...r/src/main/java/org/elasticsearch/action/admin/indices/delete/DeleteIndexRequestBuilder.java
Outdated
Show resolved
Hide resolved
@@ -22,7 +22,8 @@ | |||
import org.elasticsearch.action.support.master.MasterNodeReadOperationRequestBuilder; | |||
import org.elasticsearch.client.ElasticsearchClient; | |||
|
|||
public class IndicesExistsRequestBuilder extends MasterNodeReadOperationRequestBuilder<IndicesExistsRequest, IndicesExistsResponse, IndicesExistsRequestBuilder> { | |||
public class IndicesExistsRequestBuilder | |||
extends MasterNodeReadOperationRequestBuilder<IndicesExistsRequest, IndicesExistsResponse, IndicesExistsRequestBuilder> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here too!
@@ -27,7 +27,8 @@ | |||
* A builder for {@link TypesExistsRequest}. | |||
*/ | |||
@Deprecated | |||
public class TypesExistsRequestBuilder extends MasterNodeReadOperationRequestBuilder<TypesExistsRequest, TypesExistsResponse, TypesExistsRequestBuilder> { | |||
public class TypesExistsRequestBuilder | |||
extends MasterNodeReadOperationRequestBuilder<TypesExistsRequest, TypesExistsResponse, TypesExistsRequestBuilder> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here too!
@@ -35,13 +35,15 @@ | |||
/** | |||
* Flush Action. | |||
*/ | |||
public class TransportFlushAction extends TransportBroadcastReplicationAction<FlushRequest, FlushResponse, ShardFlushRequest, ReplicationResponse> { | |||
public class TransportFlushAction | |||
extends TransportBroadcastReplicationAction<FlushRequest, FlushResponse, ShardFlushRequest, ReplicationResponse> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here too!
@@ -37,15 +37,17 @@ | |||
/** | |||
* Delete index action. | |||
*/ | |||
public class TransportDeleteIndexTemplateAction extends TransportMasterNodeAction<DeleteIndexTemplateRequest, AcknowledgedResponse> { | |||
public class TransportDeleteIndexTemplateAction | |||
extends TransportMasterNodeAction<DeleteIndexTemplateRequest, AcknowledgedResponse> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this one too!
@@ -21,7 +21,8 @@ | |||
import org.elasticsearch.action.support.master.MasterNodeReadOperationRequestBuilder; | |||
import org.elasticsearch.client.ElasticsearchClient; | |||
|
|||
public class GetIndexTemplatesRequestBuilder extends MasterNodeReadOperationRequestBuilder<GetIndexTemplatesRequest, GetIndexTemplatesResponse, GetIndexTemplatesRequestBuilder> { | |||
public class GetIndexTemplatesRequestBuilder | |||
extends MasterNodeReadOperationRequestBuilder<GetIndexTemplatesRequest, GetIndexTemplatesResponse, GetIndexTemplatesRequestBuilder> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this one!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I broke this one out onto separate lines because an extra tab makes it go over 140.
@@ -22,7 +22,8 @@ | |||
import org.elasticsearch.action.support.broadcast.BroadcastOperationRequestBuilder; | |||
import org.elasticsearch.client.ElasticsearchClient; | |||
|
|||
public class UpgradeStatusRequestBuilder extends BroadcastOperationRequestBuilder<UpgradeStatusRequest, UpgradeStatusResponse, UpgradeStatusRequestBuilder> { | |||
public class UpgradeStatusRequestBuilder | |||
extends BroadcastOperationRequestBuilder<UpgradeStatusRequest, UpgradeStatusResponse, UpgradeStatusRequestBuilder> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this one!
@@ -30,7 +30,8 @@ | |||
/** | |||
* Builder for an update index settings request | |||
*/ | |||
public class UpgradeSettingsRequestBuilder extends AcknowledgedRequestBuilder<UpgradeSettingsRequest, AcknowledgedResponse, UpgradeSettingsRequestBuilder> { | |||
public class UpgradeSettingsRequestBuilder | |||
extends AcknowledgedRequestBuilder<UpgradeSettingsRequest, AcknowledgedResponse, UpgradeSettingsRequestBuilder> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this one!
@@ -59,7 +59,8 @@ | |||
import java.util.concurrent.atomic.AtomicReferenceArray; | |||
import java.util.function.LongSupplier; | |||
|
|||
public class TransportValidateQueryAction extends TransportBroadcastAction<ValidateQueryRequest, ValidateQueryResponse, ShardValidateQueryRequest, ShardValidateQueryResponse> { | |||
public class TransportValidateQueryAction | |||
extends TransportBroadcastAction<ValidateQueryRequest, ValidateQueryResponse, ShardValidateQueryRequest, ShardValidateQueryResponse> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this one!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I broke this one out onto separate lines because an extra tab makes it go over 140.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM assuming CI is happy :)
I messed up the commit message on the backport and left out the PR number so it didn't get linked here, the backport of this is e30bee7 |
* 'master' of github.com:elastic/elasticsearch: Fix line length for org.elasticsearch.common.* files (elastic#34888) [ML] Extract common native process base class (elastic#34856) Refactor children aggregator into a generic ParentJoinAggregator (elastic#34845) [Style] Fix line lengths in action.admin.indices (elastic#34890) HLRC - add support for source exists API (elastic#34519) [CCR] Retry when no index shard stats can be found (elastic#34852) [Docs] audit logfile structured format (elastic#34584) [Test] Fix FullClusterRestartIT.testShrink() with copy_settings param (elastic#34853) Fix LineLength Check Suppressions: index.fielddata (elastic#34891) TEST: Stablize Minio Free Port Search (elastic#34894) Delete flaky SettingsBasedHostProviderIT test (elastic#34813) [ML] Include message in field_stats for text log files (elastic#34861) [TEST] HLRC: Expand failure messages in API checks (elastic#34838) Lowercase static final DeprecationLogger instance names (elastic#34887)
* master: Introduce cross-cluster replication API docs (elastic#34726) Responses can use Writeable.Reader interface (elastic#34655) SQL: Provide null-safe scripts for Not and Neg (elastic#34877) Fix put/resume follow request parsing (elastic#34913) Fix line length for org.elasticsearch.common.* files (elastic#34888) [ML] Extract common native process base class (elastic#34856) Refactor children aggregator into a generic ParentJoinAggregator (elastic#34845) [Style] Fix line lengths in action.admin.indices (elastic#34890) HLRC - add support for source exists API (elastic#34519)
Clean up lines over 140 characters in the the `org.elasticsearch.action.admin.indices` packages
Clean up lines over 140 characters in the the
org.elasticsearch.action.admin.indices
packagesRelates to #34884