Skip to content

Commit

Permalink
Remove deprecated AutoLFInputStream constructors
Browse files Browse the repository at this point in the history
Change-Id: I00241e45d947582886658fa528cc20a961fed9e6
  • Loading branch information
msohn committed Sep 3, 2024
1 parent f9a608b commit 0ae586b
Showing 1 changed file with 0 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,44 +147,6 @@ public AutoLFInputStream(InputStream in, Set<StreamFlag> flags) {
&& flags.contains(StreamFlag.FOR_CHECKOUT);
}

/**
* Creates a new InputStream, wrapping the specified stream.
*
* @param in
* raw input stream
* @param detectBinary
* whether binaries should be detected
* @since 2.0
* @deprecated since 5.9, use {@link #create(InputStream, StreamFlag...)}
* instead
*/
@Deprecated
public AutoLFInputStream(InputStream in, boolean detectBinary) {
this(in, detectBinary, false);
}

/**
* Creates a new InputStream, wrapping the specified stream.
*
* @param in
* raw input stream
* @param detectBinary
* whether binaries should be detected
* @param abortIfBinary
* throw an IOException if the file is binary
* @since 3.3
* @deprecated since 5.9, use {@link #create(InputStream, StreamFlag...)}
* instead
*/
@Deprecated
public AutoLFInputStream(InputStream in, boolean detectBinary,
boolean abortIfBinary) {
this.in = in;
this.detectBinary = detectBinary;
this.abortIfBinary = abortIfBinary;
this.forCheckout = false;
}

@Override
public int read() throws IOException {
final int read = read(single, 0, 1);
Expand Down

0 comments on commit 0ae586b

Please sign in to comment.