Skip to content

Commit 25c13a5

Browse files
committed
prettier-plugin-java updated to 2.7.1
jhipster/prettier-java#719 jhipster/prettier-java#731
1 parent 234342e commit 25c13a5

8 files changed

Lines changed: 41 additions & 36 deletions

File tree

.pnp.cjs

Lines changed: 16 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.yarn/cache/java-parser-npm-2.3.3-e4fc8c1006-524ca238d3.zip renamed to .yarn/cache/java-parser-npm-3.0.1-e12c300b58-9b60f1132b.zip

259 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@vitest/coverage-v8": "3.1.3",
2121
"jsdom": "26.1.0",
2222
"prettier": "3.5.3",
23-
"prettier-plugin-java": "2.6.7",
23+
"prettier-plugin-java": "2.7.1",
2424
"prettier-plugin-svelte": "3.4.0",
2525
"svelte": "5.33.19",
2626
"svelte-check": "4.2.1",

src/com/exedio/cope/console/SchemaNewCop.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ static ColumnError convert(final Existence tableExistence, final Column c) {
183183
? new ColumnError(existence, type, splitRemainder(remainder))
184184
: null;
185185
}
186+
186187
private static final Pattern UNEXPECTED_TYPE = Pattern.compile(
187188
"^unexpected type >(.*)<" // Should be replaced by explicit API
188189
);
@@ -205,6 +206,7 @@ private static ConstraintResponse convert(
205206
ConstraintError.convert(tableExistence, c)
206207
);
207208
}
209+
208210
static List<ConstraintResponse> convert(
209211
final Existence tableExistence,
210212
final Collection<Constraint> list
@@ -278,6 +280,7 @@ static ConstraintError convert(
278280
)
279281
: null;
280282
}
283+
281284
private static final Pattern UNEXPECTED_CLAUSE = Pattern.compile(
282285
"^unexpected condition >>>(.*)<<<( \\(originally >>>(.*)<<<\\))?$" // Should be replaced by explicit API
283286
);

testsrc/com/exedio/cope/console/SchemaCopTest.java

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,9 @@ void testTableUnused() throws IOException, ApiTextException {
328328

329329
@Test
330330
void testColumnMissing() throws IOException, ApiTextException {
331-
final Table table = MODEL.getSchema()
332-
.getTable(SchemaInfo.getTableName(MyType.TYPE));
331+
final Table table = MODEL.getSchema().getTable(
332+
SchemaInfo.getTableName(MyType.TYPE)
333+
);
333334
table.getConstraint("MyType_unique_Unq").drop();
334335
table.getColumn("myString").drop();
335336
assertEquals(
@@ -363,8 +364,9 @@ void testColumnMissing() throws IOException, ApiTextException {
363364
@Test
364365
void testColumnUnexpectedType()
365366
throws IOException, SQLException, ApiTextException {
366-
final Table table = MODEL.getSchema()
367-
.getTable(SchemaInfo.getTableName(MyType.TYPE));
367+
final Table table = MODEL.getSchema().getTable(
368+
SchemaInfo.getTableName(MyType.TYPE)
369+
);
368370
table.getConstraint("MyType_unique_Unq").drop();
369371
table.getColumn("myString").drop();
370372
execute(
@@ -462,8 +464,9 @@ void testConstraintMissing() throws IOException, ApiTextException {
462464
@Test
463465
void testConstraintUnexpectedType()
464466
throws IOException, SQLException, ApiTextException {
465-
final Table table = MODEL.getSchema()
466-
.getTable(SchemaInfo.getTableName(MyType.TYPE));
467+
final Table table = MODEL.getSchema().getTable(
468+
SchemaInfo.getTableName(MyType.TYPE)
469+
);
467470
table.getConstraint("MyType_this_MN").drop();
468471
table.getConstraint("MyType_PK").drop();
469472
execute(
@@ -1026,9 +1029,10 @@ void tearDownSchema() throws SQLException {
10261029
}
10271030

10281031
private static void execute(final String sql) throws SQLException {
1032+
//noinspection UnnecessarySemicolon OK: prettier
10291033
try (
10301034
Connection con = SchemaInfo.newConnection(MODEL);
1031-
Statement stmt = con.createStatement()
1035+
Statement stmt = con.createStatement();
10321036
) {
10331037
stmt.execute(sql);
10341038
}

yarn.lock

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,14 +1429,14 @@ __metadata:
14291429
languageName: node
14301430
linkType: hard
14311431

1432-
"java-parser@npm:2.3.3":
1433-
version: 2.3.3
1434-
resolution: "java-parser@npm:2.3.3"
1432+
"java-parser@npm:3.0.1":
1433+
version: 3.0.1
1434+
resolution: "java-parser@npm:3.0.1"
14351435
dependencies:
14361436
chevrotain: "npm:11.0.3"
14371437
chevrotain-allstar: "npm:0.3.1"
14381438
lodash: "npm:4.17.21"
1439-
checksum: 10c0/524ca238d3349c07923ef837a1c68c7d13d347054dfb8f90f28f676af8a7a2777eeac5fb36e3c3a90fe7f19a1be33289c94abcd9d22959e61f19a38024a9e016
1439+
checksum: 10c0/9b60f1132b65785fe4f4c10785fc1638a4092aecf222f63706c119425d0ffb676b7229390abe289082cf837cd470df63f9b9383743d470816fa170240f8b1e22
14401440
languageName: node
14411441
linkType: hard
14421442

@@ -1450,7 +1450,7 @@ __metadata:
14501450
"@vitest/coverage-v8": "npm:3.1.3"
14511451
jsdom: "npm:26.1.0"
14521452
prettier: "npm:3.5.3"
1453-
prettier-plugin-java: "npm:2.6.7"
1453+
prettier-plugin-java: "npm:2.7.1"
14541454
prettier-plugin-svelte: "npm:3.4.0"
14551455
svelte: "npm:5.33.19"
14561456
svelte-check: "npm:4.2.1"
@@ -1832,15 +1832,14 @@ __metadata:
18321832
languageName: node
18331833
linkType: hard
18341834

1835-
"prettier-plugin-java@npm:2.6.7":
1836-
version: 2.6.7
1837-
resolution: "prettier-plugin-java@npm:2.6.7"
1835+
"prettier-plugin-java@npm:2.7.1":
1836+
version: 2.7.1
1837+
resolution: "prettier-plugin-java@npm:2.7.1"
18381838
dependencies:
1839-
java-parser: "npm:2.3.3"
1840-
lodash: "npm:4.17.21"
1839+
java-parser: "npm:3.0.1"
18411840
peerDependencies:
18421841
prettier: ^3.0.0
1843-
checksum: 10c0/d102ab6f7c0dbfb4630458fdc0547bf22ef1900c3be99b537ddec9f505693a5fbab0f083e576dc124032edd75c2d0a1ab219aae95839905e5f295fa0d1ec93ff
1842+
checksum: 10c0/e9554a4f7eaf2c3112e528924dc4537c427ae3afb812663fda58b69485a47e6fb5550799f8d081710e7c073050e5a902ae8807fb25569f7c2f2dbd4f37ff99f8
18441843
languageName: node
18451844
linkType: hard
18461845

0 commit comments

Comments
 (0)