aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] cschneider closed pull request #11: Set subscribe request constructor private
Date Sat, 05 Jan 2019 10:01:51 GMT
cschneider closed pull request #11: Set subscribe request constructor private
URL: https://github.com/apache/aries-journaled-events/pull/11
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/org.apache.aries.events.api/src/main/java/org/apache/aries/events/api/SubscribeRequest.java
b/org.apache.aries.events.api/src/main/java/org/apache/aries/events/api/SubscribeRequest.java
index a209968..34d8cdb 100644
--- a/org.apache.aries.events.api/src/main/java/org/apache/aries/events/api/SubscribeRequest.java
+++ b/org.apache.aries.events.api/src/main/java/org/apache/aries/events/api/SubscribeRequest.java
@@ -24,13 +24,13 @@
 import javax.annotation.ParametersAreNonnullByDefault;
 
 @ParametersAreNonnullByDefault
-public class SubscribeRequest {
+public final class SubscribeRequest {
     private final String topic;
     private final Consumer<Received> callback;
     private Position position;
     private Seek seek = Seek.latest;
     
-    public SubscribeRequest(String topic, Consumer<Received> callback) {
+    private SubscribeRequest(String topic, Consumer<Received> callback) {
         this.topic = topic;
         this.callback = callback;
     }


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message