Skip to content

Commit 0e5bccd

Browse files
authored
Deprecate ConsumerUtils (#1315)
1 parent ea97644 commit 0e5bccd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

maven-scm-api/src/main/java/org/apache/maven/scm/util/ConsumerUtils.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727

2828
/**
2929
* @author <a href="mailto:[email protected]">Davide Angelocola</a>
30+
* @deprecated an internal test utility that should not be used by model code
3031
*/
32+
@Deprecated
3133
public class ConsumerUtils {
3234

3335
private ConsumerUtils() {}
@@ -38,7 +40,9 @@ private ConsumerUtils() {}
3840
* @param f TODO
3941
* @param consumer TODO
4042
* @throws IOException if any
43+
* @deprecated inline this method if you're using it
4144
*/
45+
@Deprecated
4246
public static void consumeFile(File f, StreamConsumer consumer) throws IOException {
4347
try (BufferedReader reader = Files.newBufferedReader(f.toPath())) {
4448
String line;

0 commit comments

Comments
 (0)