Commit 6d701883 authored by Stein Eldar Johnsen's avatar Stein Eldar Johnsen 💬

Fix javadoc errors.

- Fail on future javadoc errors.
- Make aggregate javadoc report on main project.

Also

- Nit in BinaryUtil to avoid extra copying of byte array.
parent 3a03c166
......@@ -41,6 +41,7 @@ public class ExtraMatchers {
*
* @param lowerInclusive The lower inclusive accepted value.
* @param upperExclusive The upper exclusive accepted value (the exact value not accepted).
* @param <T> The number type.
* @return The matcher.
*/
public static <T extends Number> Matcher<T> inRange(@Nonnull T lowerInclusive, @Nonnull T upperExclusive) {
......
......@@ -27,6 +27,7 @@ public class ResourceUtils {
*
* @param resource The resource path.
* @param dir Target directory.
* @return File created and written to.
*/
public static File copyResourceTo(String resource, File dir) {
if (!dir.exists()) {
......@@ -55,6 +56,7 @@ public class ResourceUtils {
*
* @param content The file content.
* @param target The file to write to.
* @return File written to.
*/
public static File writeContentTo(String content, File target) {
assertNotNull("Content is null", content);
......
......@@ -202,6 +202,7 @@ public class ConsoleWatcher extends TestWatcher implements AutoCloseable {
/**
* Set input to return the given bytes.
* @param in The bytes for input.
* @return The console watcher.
*/
public ConsoleWatcher setInput(@Nonnull byte[] in) {
inStream = new ByteArrayInputStream(in);
......@@ -211,6 +212,7 @@ public class ConsoleWatcher extends TestWatcher implements AutoCloseable {
/**
* Set input with dynamic content.
* @param in The input values.
* @return The console watcher.
*/
public ConsoleWatcher setInput(Object... in) {
assert in.length > 0 : "Require at least one input item";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment