Skip to content

Commit 113d753

Browse files
authored
Cosmos: fix checkstyle (#9944)
* regenerate cosmos * fix: compile error * feat: remove cosmos sepecial checkstyle * feat: do auto transform * fix: checkstyle
1 parent 18e5821 commit 113d753

File tree

196 files changed

+12892
-7822
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+12892
-7822
lines changed

sdk/cosmos/mgmt/pom.xml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -133,29 +133,6 @@
133133
</compilerArguments>
134134
</configuration>
135135
</plugin>
136-
<!-- <plugin>-->
137-
<!-- <groupId>org.apache.maven.plugins</groupId>-->
138-
<!-- <artifactId>maven-checkstyle-plugin</artifactId>-->
139-
<!-- <version>3.1.0</version>-->
140-
<!-- <dependencies>-->
141-
<!-- <dependency>-->
142-
<!-- <groupId>com.microsoft.azure</groupId>-->
143-
<!-- <artifactId>autorest-build-tools</artifactId>-->
144-
<!-- <version>[1.0.0,2.0.0)</version>-->
145-
<!-- </dependency>-->
146-
<!-- <dependency>-->
147-
<!-- <groupId>com.puppycrawl.tools</groupId>-->
148-
<!-- <artifactId>checkstyle</artifactId>-->
149-
<!-- <version>8.24</version>-->
150-
<!-- </dependency>-->
151-
<!-- </dependencies>-->
152-
<!-- <configuration>-->
153-
<!-- <configLocation>checkstyle.xml</configLocation>-->
154-
<!-- <propertyExpansion>samedir=runtimes/build-tools/src/main/resources</propertyExpansion>-->
155-
<!-- <suppressionsLocation>${project.basedir}/suppressions.xml</suppressionsLocation>-->
156-
<!-- <consoleOutput>true</consoleOutput>-->
157-
<!-- </configuration>-->
158-
<!-- </plugin>-->
159136
<plugin>
160137
<groupId>org.apache.maven.plugins</groupId>
161138
<artifactId>maven-javadoc-plugin</artifactId>
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
2-
// Licensed under the MIT License. See License.txt in the project root for
3-
// license information.
4-
//
2+
// Licensed under the MIT License.
53
// Code generated by Microsoft (R) AutoRest Code Generator.
64

75
package com.azure.management.cosmosdb;
86

97
import com.azure.core.annotation.Immutable;
108
import com.azure.core.management.ProxyResource;
119

12-
/**
13-
* The ARMProxyResource model.
14-
*/
10+
/** The ARMProxyResource model. */
1511
@Immutable
1612
public class ARMProxyResource extends ProxyResource {
1713
}
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
2-
// Licensed under the MIT License. See License.txt in the project root for
3-
// license information.
4-
//
2+
// Licensed under the MIT License.
53
// Code generated by Microsoft (R) AutoRest Code Generator.
64

75
package com.azure.management.cosmosdb;
86

97
import com.azure.core.annotation.Immutable;
108
import com.azure.core.management.Resource;
119

12-
/**
13-
* The ARMResourceProperties model.
14-
*/
10+
/** The ARMResourceProperties model. */
1511
@Immutable
1612
public class ARMResourceProperties extends Resource {
1713
}

sdk/cosmos/mgmt/src/main/java/com/azure/management/cosmosdb/AzureEntityResource.java

Lines changed: 0 additions & 32 deletions
This file was deleted.

sdk/cosmos/mgmt/src/main/java/com/azure/management/cosmosdb/Capability.java

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
2-
// Licensed under the MIT License. See License.txt in the project root for
3-
// license information.
4-
//
2+
// Licensed under the MIT License.
53
// Code generated by Microsoft (R) AutoRest Code Generator.
64

75
package com.azure.management.cosmosdb;
86

97
import com.azure.core.annotation.Fluent;
108
import com.fasterxml.jackson.annotation.JsonProperty;
119

12-
/**
13-
* The Capability model.
14-
*/
10+
/** The Capability model. */
1511
@Fluent
1612
public final class Capability {
1713
/*
@@ -23,21 +19,19 @@ public final class Capability {
2319
private String name;
2420

2521
/**
26-
* Get the name property: Name of the Cosmos DB capability. For example,
27-
* "name": "EnableCassandra". Current values also include "EnableTable" and
28-
* "EnableGremlin".
29-
*
22+
* Get the name property: Name of the Cosmos DB capability. For example, "name": "EnableCassandra". Current values
23+
* also include "EnableTable" and "EnableGremlin".
24+
*
3025
* @return the name value.
3126
*/
3227
public String name() {
3328
return this.name;
3429
}
3530

3631
/**
37-
* Set the name property: Name of the Cosmos DB capability. For example,
38-
* "name": "EnableCassandra". Current values also include "EnableTable" and
39-
* "EnableGremlin".
40-
*
32+
* Set the name property: Name of the Cosmos DB capability. For example, "name": "EnableCassandra". Current values
33+
* also include "EnableTable" and "EnableGremlin".
34+
*
4135
* @param name the name value to set.
4236
* @return the Capability object itself.
4337
*/

sdk/cosmos/mgmt/src/main/java/com/azure/management/cosmosdb/CassandraKeyspaceCreateUpdateParameters.java

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
2-
// Licensed under the MIT License. See License.txt in the project root for
3-
// license information.
4-
//
2+
// Licensed under the MIT License.
53
// Code generated by Microsoft (R) AutoRest Code Generator.
64

75
package com.azure.management.cosmosdb;
@@ -11,9 +9,7 @@
119
import com.fasterxml.jackson.annotation.JsonProperty;
1210
import java.util.Map;
1311

14-
/**
15-
* The CassandraKeyspaceCreateUpdateParameters model.
16-
*/
12+
/** The CassandraKeyspaceCreateUpdateParameters model. */
1713
@JsonFlatten
1814
@Fluent
1915
public class CassandraKeyspaceCreateUpdateParameters extends ARMResourceProperties {
@@ -31,19 +27,17 @@ public class CassandraKeyspaceCreateUpdateParameters extends ARMResourceProperti
3127
private Map<String, String> options;
3228

3329
/**
34-
* Get the resource property: The standard JSON format of a Cassandra
35-
* keyspace.
36-
*
30+
* Get the resource property: The standard JSON format of a Cassandra keyspace.
31+
*
3732
* @return the resource value.
3833
*/
3934
public CassandraKeyspaceResource resource() {
4035
return this.resource;
4136
}
4237

4338
/**
44-
* Set the resource property: The standard JSON format of a Cassandra
45-
* keyspace.
46-
*
39+
* Set the resource property: The standard JSON format of a Cassandra keyspace.
40+
*
4741
* @param resource the resource value to set.
4842
* @return the CassandraKeyspaceCreateUpdateParameters object itself.
4943
*/
@@ -53,19 +47,19 @@ public CassandraKeyspaceCreateUpdateParameters withResource(CassandraKeyspaceRes
5347
}
5448

5549
/**
56-
* Get the options property: A key-value pair of options to be applied for
57-
* the request. This corresponds to the headers sent with the request.
58-
*
50+
* Get the options property: A key-value pair of options to be applied for the request. This corresponds to the
51+
* headers sent with the request.
52+
*
5953
* @return the options value.
6054
*/
6155
public Map<String, String> options() {
6256
return this.options;
6357
}
6458

6559
/**
66-
* Set the options property: A key-value pair of options to be applied for
67-
* the request. This corresponds to the headers sent with the request.
68-
*
60+
* Set the options property: A key-value pair of options to be applied for the request. This corresponds to the
61+
* headers sent with the request.
62+
*
6963
* @param options the options value to set.
7064
* @return the CassandraKeyspaceCreateUpdateParameters object itself.
7165
*/

sdk/cosmos/mgmt/src/main/java/com/azure/management/cosmosdb/CassandraKeyspaceGetPropertiesResource.java

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
2-
// Licensed under the MIT License. See License.txt in the project root for
3-
// license information.
4-
//
2+
// Licensed under the MIT License.
53
// Code generated by Microsoft (R) AutoRest Code Generator.
64

75
package com.azure.management.cosmosdb;
86

97
import com.azure.core.annotation.Immutable;
108
import com.fasterxml.jackson.annotation.JsonProperty;
119

12-
/**
13-
* The CassandraKeyspaceGetPropertiesResource model.
14-
*/
10+
/** The CassandraKeyspaceGetPropertiesResource model. */
1511
@Immutable
1612
public final class CassandraKeyspaceGetPropertiesResource extends CassandraKeyspaceResource {
1713
/*
@@ -36,27 +32,26 @@ public final class CassandraKeyspaceGetPropertiesResource extends CassandraKeysp
3632

3733
/**
3834
* Get the rid property: A system generated property. A unique identifier.
39-
*
35+
*
4036
* @return the rid value.
4137
*/
4238
public String rid() {
4339
return this.rid;
4440
}
4541

4642
/**
47-
* Get the ts property: A system generated property that denotes the last
48-
* updated timestamp of the resource.
49-
*
43+
* Get the ts property: A system generated property that denotes the last updated timestamp of the resource.
44+
*
5045
* @return the ts value.
5146
*/
5247
public Object ts() {
5348
return this.ts;
5449
}
5550

5651
/**
57-
* Get the etag property: A system generated property representing the
58-
* resource etag required for optimistic concurrency control.
59-
*
52+
* Get the etag property: A system generated property representing the resource etag required for optimistic
53+
* concurrency control.
54+
*
6055
* @return the etag value.
6156
*/
6257
public String etag() {

sdk/cosmos/mgmt/src/main/java/com/azure/management/cosmosdb/CassandraKeyspaceResource.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
2-
// Licensed under the MIT License. See License.txt in the project root for
3-
// license information.
4-
//
2+
// Licensed under the MIT License.
53
// Code generated by Microsoft (R) AutoRest Code Generator.
64

75
package com.azure.management.cosmosdb;
86

97
import com.azure.core.annotation.Fluent;
108
import com.fasterxml.jackson.annotation.JsonProperty;
119

12-
/**
13-
* The CassandraKeyspaceResource model.
14-
*/
10+
/** The CassandraKeyspaceResource model. */
1511
@Fluent
1612
public class CassandraKeyspaceResource {
1713
/*
@@ -22,7 +18,7 @@ public class CassandraKeyspaceResource {
2218

2319
/**
2420
* Get the id property: Name of the Cosmos DB Cassandra keyspace.
25-
*
21+
*
2622
* @return the id value.
2723
*/
2824
public String getId() {
@@ -31,7 +27,7 @@ public String getId() {
3127

3228
/**
3329
* Set the id property: Name of the Cosmos DB Cassandra keyspace.
34-
*
30+
*
3531
* @param id the id value to set.
3632
* @return the CassandraKeyspaceResource object itself.
3733
*/

sdk/cosmos/mgmt/src/main/java/com/azure/management/cosmosdb/CassandraPartitionKey.java

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
2-
// Licensed under the MIT License. See License.txt in the project root for
3-
// license information.
4-
//
2+
// Licensed under the MIT License.
53
// Code generated by Microsoft (R) AutoRest Code Generator.
64

75
package com.azure.management.cosmosdb;
86

97
import com.azure.core.annotation.Fluent;
108
import com.fasterxml.jackson.annotation.JsonProperty;
119

12-
/**
13-
* The CassandraPartitionKey model.
14-
*/
10+
/** The CassandraPartitionKey model. */
1511
@Fluent
1612
public final class CassandraPartitionKey {
1713
/*
@@ -21,19 +17,17 @@ public final class CassandraPartitionKey {
2117
private String name;
2218

2319
/**
24-
* Get the name property: Name of the Cosmos DB Cassandra table partition
25-
* key.
26-
*
20+
* Get the name property: Name of the Cosmos DB Cassandra table partition key.
21+
*
2722
* @return the name value.
2823
*/
2924
public String name() {
3025
return this.name;
3126
}
3227

3328
/**
34-
* Set the name property: Name of the Cosmos DB Cassandra table partition
35-
* key.
36-
*
29+
* Set the name property: Name of the Cosmos DB Cassandra table partition key.
30+
*
3731
* @param name the name value to set.
3832
* @return the CassandraPartitionKey object itself.
3933
*/

0 commit comments

Comments
 (0)