Skip to content

Commit c83c81a

Browse files
committed
#1851: Refactor variable names for clarity.
1 parent c6f5826 commit c83c81a

2 files changed

Lines changed: 21 additions & 21 deletions

File tree

src/main/java/org/cactoos/io/TeeOutput.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,58 +33,58 @@ public final class TeeOutput implements Output {
3333
/**
3434
* Ctor.
3535
* @param tgt The target
36-
* @param cpy The copy destination
36+
* @param mirror The copy destination
3737
* @param charset The charset
3838
*/
39-
public TeeOutput(final Output tgt, final Writer cpy,
39+
public TeeOutput(final Output tgt, final Writer mirror,
4040
final Charset charset) {
41-
this(tgt, new OutputTo(cpy, charset));
41+
this(tgt, new OutputTo(mirror, charset));
4242
}
4343

4444
/**
4545
* Ctor.
4646
* @param tgt The target
47-
* @param cpy The copy destination
47+
* @param mirror The copy destination
4848
*/
49-
public TeeOutput(final Output tgt, final Writer cpy) {
50-
this(tgt, new OutputTo(cpy));
49+
public TeeOutput(final Output tgt, final Writer mirror) {
50+
this(tgt, new OutputTo(mirror));
5151
}
5252

5353
/**
5454
* Ctor.
5555
* @param tgt The target
56-
* @param cpy The copy destination
56+
* @param mirror The copy destination
5757
*/
58-
public TeeOutput(final Output tgt, final Path cpy) {
59-
this(tgt, new OutputTo(cpy));
58+
public TeeOutput(final Output tgt, final Path mirror) {
59+
this(tgt, new OutputTo(mirror));
6060
}
6161

6262
/**
6363
* Ctor.
6464
* @param tgt The target
65-
* @param cpy The copy destination
65+
* @param mirror The copy destination
6666
*/
67-
public TeeOutput(final Output tgt, final File cpy) {
68-
this(tgt, new OutputTo(cpy));
67+
public TeeOutput(final Output tgt, final File mirror) {
68+
this(tgt, new OutputTo(mirror));
6969
}
7070

7171
/**
7272
* Ctor.
7373
* @param tgt The target
74-
* @param cpy The copy destination
74+
* @param mirror The copy destination
7575
*/
76-
public TeeOutput(final Output tgt, final OutputStream cpy) {
77-
this(tgt, new OutputTo(cpy));
76+
public TeeOutput(final Output tgt, final OutputStream mirror) {
77+
this(tgt, new OutputTo(mirror));
7878
}
7979

8080
/**
8181
* Ctor.
8282
* @param tgt The target
83-
* @param cpy The copy destination
83+
* @param mirror The copy destination
8484
*/
85-
public TeeOutput(final Output tgt, final Output cpy) {
85+
public TeeOutput(final Output tgt, final Output mirror) {
8686
this.target = tgt;
87-
this.copy = cpy;
87+
this.copy = mirror;
8888
}
8989

9090
@Override

src/main/java/org/cactoos/io/TeeOutputStream.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ public final class TeeOutputStream extends OutputStream {
3030
/**
3131
* Ctor.
3232
* @param tgt Destination of data
33-
* @param cpy Copy
33+
* @param mirror Copy
3434
*/
35-
public TeeOutputStream(final OutputStream tgt, final OutputStream cpy) {
35+
public TeeOutputStream(final OutputStream tgt, final OutputStream mirror) {
3636
super();
3737
this.target = tgt;
38-
this.copy = cpy;
38+
this.copy = mirror;
3939
}
4040

4141
@Override

0 commit comments

Comments
 (0)