You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by mm...@apache.org on 2022/07/11 16:27:34 UTC
[pulsar] branch master updated: Removes compiler warnings (#16482)
This is an automated email from the ASF dual-hosted git repository.
mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new a1a024c2614 Removes compiler warnings (#16482)
a1a024c2614 is described below
commit a1a024c2614fa3e460b84645400e14614dda1bb5
Author: Elliot West <te...@gmail.com>
AuthorDate: Mon Jul 11 17:27:24 2022 +0100
Removes compiler warnings (#16482)
Add deprecation annotations where deprecated in Javadoc only
---
.../org/apache/pulsar/broker/authorization/AuthorizationProvider.java | 1 +
.../api-java/src/main/java/org/apache/pulsar/functions/api/Context.java | 2 ++
2 files changed, 3 insertions(+)
diff --git a/pulsar-broker-common/src/main/java/org/apache/pulsar/broker/authorization/AuthorizationProvider.java b/pulsar-broker-common/src/main/java/org/apache/pulsar/broker/authorization/AuthorizationProvider.java
index 74897c75f52..12a54d502f4 100644
--- a/pulsar-broker-common/src/main/java/org/apache/pulsar/broker/authorization/AuthorizationProvider.java
+++ b/pulsar-broker-common/src/main/java/org/apache/pulsar/broker/authorization/AuthorizationProvider.java
@@ -67,6 +67,7 @@ public interface AuthorizationProvider extends Closeable {
* @return a CompletableFuture containing a boolean in which true means the role is a super user
* and false if it is not
*/
+ @Deprecated
default CompletableFuture<Boolean> isSuperUser(String role, ServiceConfiguration serviceConfiguration) {
Set<String> superUserRoles = serviceConfiguration.getSuperUserRoles();
return CompletableFuture.completedFuture(role != null && superUserRoles.contains(role));
diff --git a/pulsar-functions/api-java/src/main/java/org/apache/pulsar/functions/api/Context.java b/pulsar-functions/api-java/src/main/java/org/apache/pulsar/functions/api/Context.java
index cc363ebfdad..eeaf6f4e20f 100644
--- a/pulsar-functions/api-java/src/main/java/org/apache/pulsar/functions/api/Context.java
+++ b/pulsar-functions/api-java/src/main/java/org/apache/pulsar/functions/api/Context.java
@@ -130,6 +130,7 @@ public interface Context extends BaseContext {
* @return A future that completes when the framework is done publishing the message
* @deprecated in favor of using {@link #newOutputMessage(String, Schema)}
*/
+ @Deprecated
<X> CompletableFuture<Void> publish(String topicName, X object, String schemaOrSerdeClassName);
/**
@@ -140,6 +141,7 @@ public interface Context extends BaseContext {
* @return A future that completes when the framework is done publishing the message
* @deprecated in favor of using {@link #newOutputMessage(String, Schema)}
*/
+ @Deprecated
<X> CompletableFuture<Void> publish(String topicName, X object);
/**