From fdd386cb615ed09483b40d9c8d39aa05ce0049cb Mon Sep 17 00:00:00 2001 From: yantian Date: Fri, 13 Dec 2024 09:52:53 +0800 Subject: [PATCH] fix checkstyle fail --- .../main/java/org/apache/paimon/catalog/DatabaseChange.java | 6 ++++-- .../java/org/apache/paimon/rest/RESTObjectMapperTest.java | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/paimon-core/src/main/java/org/apache/paimon/catalog/DatabaseChange.java b/paimon-core/src/main/java/org/apache/paimon/catalog/DatabaseChange.java index 31b3fb28f964..8503163ae762 100644 --- a/paimon-core/src/main/java/org/apache/paimon/catalog/DatabaseChange.java +++ b/paimon-core/src/main/java/org/apache/paimon/catalog/DatabaseChange.java @@ -32,7 +32,8 @@ static DatabaseChange removeProperty(String property) { String apply(Map parameter); - public static final class SetProperty implements DatabaseChange { + /** Set property for database change. */ + final class SetProperty implements DatabaseChange { private final String property; private final String value; @@ -55,7 +56,8 @@ public String apply(Map parameter) { } } - public static final class RemoveProperty implements DatabaseChange { + /** Remove property for database change. */ + final class RemoveProperty implements DatabaseChange { private final String property; private RemoveProperty(String property) { diff --git a/paimon-core/src/test/java/org/apache/paimon/rest/RESTObjectMapperTest.java b/paimon-core/src/test/java/org/apache/paimon/rest/RESTObjectMapperTest.java index 7fee81ef1024..3c9c29af1100 100644 --- a/paimon-core/src/test/java/org/apache/paimon/rest/RESTObjectMapperTest.java +++ b/paimon-core/src/test/java/org/apache/paimon/rest/RESTObjectMapperTest.java @@ -68,7 +68,6 @@ public void createDatabaseRequestParseTest() throws Exception { String requestStr = mapper.writeValueAsString(request); CreateDatabaseRequest parseData = mapper.readValue(requestStr, CreateDatabaseRequest.class); assertEquals(request.getName(), parseData.getName()); - assertEquals(request.getIgnoreIfExists(), parseData.getIgnoreIfExists()); assertEquals(request.getOptions().size(), parseData.getOptions().size()); }