Skip to content

Deprecate single-segment top-level namespace #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject org.clj-commons/byte-streams (or (System/getenv "PROJECT_VERSION") "0.2.10")
(defproject org.clj-commons/byte-streams (or (System/getenv "PROJECT_VERSION") "0.2.11")
:description "A simple way to handle the menagerie of Java byte representations."
:license {:name "MIT License"
:url "http://opensource.org/licenses/MIT"}
@@ -7,7 +7,7 @@
:username :env/clojars_username
:password :env/clojars_password
:sign-releases false}]]
:dependencies [[primitive-math "0.1.6"]
:dependencies [[com.github.piotr-yuxuan/primitive-math "0.1.7"]
[manifold "0.1.9"]]
:profiles {:dev {:dependencies [[org.clojure/clojure "1.10.3"]
[org.clojure/test.check "1.1.0"]
@@ -27,7 +27,7 @@
:cljfmt {:indents {#".*" [[:inner 0]]}}
:codox {:source-uri "https://github.com/clj-commons/byte-streams/blob/master/{filepath}#L{line}"
:metadata {:doc/format :markdown}
:namespaces [byte-streams]}
:namespaces [clj-commons.byte-streams]}
:global-vars {*warn-on-reflection* true}
:java-source-paths ["src"]
:jvm-opts ^:replace ["-server" "-Xmx4g"])
4 changes: 3 additions & 1 deletion src/byte_streams.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
(ns byte-streams
(ns ^{;; single segment namespace is deprecated, use clj-commons.byte-streams
:deprecated true}
byte-streams
(:refer-clojure :exclude [byte-array vector-of])
(:require
[manifold
4 changes: 4 additions & 0 deletions src/byte_streams/ByteBufferInputStream.java
Original file line number Diff line number Diff line change
@@ -4,6 +4,10 @@
import java.io.IOException;
import java.nio.ByteBuffer;

/**
* Deprecated, use clj_commons.byte_streams.ByteBufferInputStream.
*/
@Deprecated()
public class ByteBufferInputStream extends InputStream {

private ByteBuffer _buf;
4 changes: 4 additions & 0 deletions src/byte_streams/InputStream.java
Original file line number Diff line number Diff line change
@@ -2,6 +2,10 @@

import java.io.IOException;

/**
* Deprecated, use clj_commons.byte_streams.InputStream.
*/
@Deprecated()
public class InputStream extends java.io.InputStream {

public interface Streamable {
4 changes: 4 additions & 0 deletions src/byte_streams/Utils.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package byte_streams;

/**
* Deprecated, use clj_commons.byte_streams.Utils.
*/
@Deprecated()
public class Utils {
public static byte[] byteArray(int length) {
return new byte[length];
4 changes: 3 additions & 1 deletion src/byte_streams/char_sequence.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
(ns byte-streams.char-sequence
(ns ^{;; single segment namespace is deprecated, use clj-commons.byte-streams.char-sequence
:deprecated true}
byte-streams.char-sequence
(:refer-clojure :exclude [flush])
(:import
[java.util.concurrent.locks
4 changes: 3 additions & 1 deletion src/byte_streams/graph.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
(ns byte-streams.graph
(ns ^{;; single segment namespace is deprecated, use clj-commons.byte-streams.graph
:deprecated true}
byte-streams.graph
(:refer-clojure :exclude [type])
(:require
[manifold.stream :as s]
4 changes: 3 additions & 1 deletion src/byte_streams/protocols.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
(ns byte-streams.protocols
(ns ^{;; single segment namespace is deprecated, use clj-commons.byte-streams.protocols
:deprecated true}
byte-streams.protocols
(:require
[byte-streams.utils :refer [defprotocol+]])
(:import
4 changes: 3 additions & 1 deletion src/byte_streams/pushback_stream.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
(ns byte-streams.pushback-stream
(ns ^{;; single segment namespace is deprecated, use clj-commons.byte-streams.byte-streams.pushback-stream
:deprecated true}
byte-streams.pushback-stream
(:refer-clojure :exclude [take])
(:require
[primitive-math :as p]
4 changes: 3 additions & 1 deletion src/byte_streams/utils.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
(ns byte-streams.utils)
(ns ^{;; single segment namespace is deprecated, use clj-commons.byte-streams.utils
:deprecated true}
byte-streams.utils)

(defmacro defprotocol+ [name & body]
(when-not (resolve name)
Loading