You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by gg...@apache.org on 2019/12/31 01:29:38 UTC

[httpcomponents-core] branch master updated: Httpcore 619 event mask as a class (#179)

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git


The following commit(s) were added to refs/heads/master by this push:
     new de3b41c  Httpcore 619 event mask as a class (#179)
de3b41c is described below

commit de3b41c513694d2bb27564a8743c8511e8d26d1e
Author: Gary Gregory <ga...@users.noreply.github.com>
AuthorDate: Mon Dec 30 20:29:29 2019 -0500

    Httpcore 619 event mask as a class (#179)
    
    * [HTTPCORE-619] o.a.hc.core5.reactor.EventMask should be a class, not an interface
    
    This closes #179
    
    * [HTTPCORE-619] org.apache.hc.core5.reactor.EventMask should be a class,
    not an interface.
    
    A comment is enough here. No need for code bloat.
---
 httpcore5/src/main/java/org/apache/hc/core5/reactor/EventMask.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/httpcore5/src/main/java/org/apache/hc/core5/reactor/EventMask.java b/httpcore5/src/main/java/org/apache/hc/core5/reactor/EventMask.java
index ff24ed0..e6a9e3e 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/reactor/EventMask.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/reactor/EventMask.java
@@ -34,7 +34,11 @@ import java.nio.channels.SelectionKey;
  *
  * @since 4.0
  */
-public interface EventMask {
+public final class EventMask {
+
+    private EventMask() {
+        // no instances.
+    }
 
     /**
      * Interest in data input.