From 25c2dafe5fa0d3b42ec53663ab5fb4e40ec36ea6 Mon Sep 17 00:00:00 2001 From: Colin Alworth Date: Wed, 27 Sep 2023 11:52:07 -0500 Subject: [PATCH] Added package-info for new generated types, removed rf-log handler --- user/build.xml | 15 ++---------- .../gwt/core/server/jakarta/package-info.java | 23 ++++++++++++++++++ .../logging/server/jakarta/package-info.java | 23 ++++++++++++++++++ .../gwt/user/server/jakarta/package-info.java | 23 ++++++++++++++++++ .../user/server/rpc/jakarta/package-info.java | 23 ++++++++++++++++++ .../requestfactory/server/Logging.java | 7 +++--- .../server/jakarta/package-info.java | 24 +++++++++++++++++++ 7 files changed, 122 insertions(+), 16 deletions(-) create mode 100644 user/src/com/google/gwt/core/server/jakarta/package-info.java create mode 100644 user/src/com/google/gwt/logging/server/jakarta/package-info.java create mode 100644 user/src/com/google/gwt/user/server/jakarta/package-info.java create mode 100644 user/src/com/google/gwt/user/server/rpc/jakarta/package-info.java create mode 100644 user/src/com/google/web/bindery/requestfactory/server/jakarta/package-info.java diff --git a/user/build.xml b/user/build.xml index f097d07b760..d488079c87d 100755 --- a/user/build.xml +++ b/user/build.xml @@ -149,7 +149,8 @@ - + + @@ -214,7 +215,6 @@ - @@ -234,17 +234,6 @@ - - - - - - - - - - - diff --git a/user/src/com/google/gwt/core/server/jakarta/package-info.java b/user/src/com/google/gwt/core/server/jakarta/package-info.java new file mode 100644 index 00000000000..d2518d082b2 --- /dev/null +++ b/user/src/com/google/gwt/core/server/jakarta/package-info.java @@ -0,0 +1,23 @@ +/* + * Copyright 2023 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ + +/** + * Jakarta-specific package for server-only classes. To use these types, be sure + * to use the {@code gwt-servlet-jakarta.jar}. + * + * @since GWT 2.11 + */ +package com.google.gwt.core.server.jakarta; \ No newline at end of file diff --git a/user/src/com/google/gwt/logging/server/jakarta/package-info.java b/user/src/com/google/gwt/logging/server/jakarta/package-info.java new file mode 100644 index 00000000000..51bc2803c67 --- /dev/null +++ b/user/src/com/google/gwt/logging/server/jakarta/package-info.java @@ -0,0 +1,23 @@ +/* + * Copyright 2023 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ + +/** + * Jakarta-specific package for server-only classes. To use these types, be sure + * to use the {@code gwt-servlet-jakarta.jar}. + * + * @since GWT 2.11 + */ +package com.google.gwt.logging.server.jakarta; \ No newline at end of file diff --git a/user/src/com/google/gwt/user/server/jakarta/package-info.java b/user/src/com/google/gwt/user/server/jakarta/package-info.java new file mode 100644 index 00000000000..8b545003b37 --- /dev/null +++ b/user/src/com/google/gwt/user/server/jakarta/package-info.java @@ -0,0 +1,23 @@ +/* + * Copyright 2023 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ + +/** + * Jakarta-specific package for server-only classes. To use these types, be sure + * to use the {@code gwt-servlet-jakarta.jar}. + * + * @since GWT 2.11 + */ +package com.google.gwt.user.server.jakarta; \ No newline at end of file diff --git a/user/src/com/google/gwt/user/server/rpc/jakarta/package-info.java b/user/src/com/google/gwt/user/server/rpc/jakarta/package-info.java new file mode 100644 index 00000000000..b3f453a1f4c --- /dev/null +++ b/user/src/com/google/gwt/user/server/rpc/jakarta/package-info.java @@ -0,0 +1,23 @@ +/* + * Copyright 2023 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ + +/** + * Jakarta-specific package for server-only classes. To use these types, be sure + * to use the {@code gwt-servlet-jakarta.jar}. + * + * @since GWT 2.11 + */ +package com.google.gwt.user.server.rpc.jakarta; \ No newline at end of file diff --git a/user/src/com/google/web/bindery/requestfactory/server/Logging.java b/user/src/com/google/web/bindery/requestfactory/server/Logging.java index c2aea9583cf..728de548ddf 100644 --- a/user/src/com/google/web/bindery/requestfactory/server/Logging.java +++ b/user/src/com/google/web/bindery/requestfactory/server/Logging.java @@ -25,8 +25,9 @@ /** * Server-side object that handles log messages sent by - * {@link com.google.web.bindery.requestfactory.gwt.client.RequestFactoryLogHandler} - * . + * {@link com.google.web.bindery.requestfactory.gwt.client.RequestFactoryLogHandler}. + * To use this in {@code jakarta.servlet} projects, create your own LoggingRequest + * and RequestFactoryLogHandler types that reference the jakarta variant of this class. */ public class Logging { @@ -36,7 +37,7 @@ public class Logging { * Logs a message. * * @param logRecordJson a json serialized LogRecord, as provided by - * {@link com.google.gwt.logging.client.JsonLogRecordClientUtil#logRecordAsJsonObject(LogRecord)} + * {@link com.google.gwt.logging.client.JsonLogRecordClientUtil#logRecordAsJson(java.util.logging.LogRecord)} )} * @throws RemoteLoggingException if logging fails */ public static void logMessage(String logRecordJson) throws RemoteLoggingException { diff --git a/user/src/com/google/web/bindery/requestfactory/server/jakarta/package-info.java b/user/src/com/google/web/bindery/requestfactory/server/jakarta/package-info.java new file mode 100644 index 00000000000..024078429de --- /dev/null +++ b/user/src/com/google/web/bindery/requestfactory/server/jakarta/package-info.java @@ -0,0 +1,24 @@ +/* + * Copyright 2023 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ + +/** + * Jakarta-specific package for server-only classes. To use these types, be sure + * to use the {@code gwt-servlet-jakarta.jar}, or + * {@code requestfactory-server-jakarta.jar}. + * + * @since GWT 2.11 + */ +package com.google.web.bindery.requestfactory.server.jakarta; \ No newline at end of file