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 { ...@@ -41,6 +41,7 @@ public class ExtraMatchers {
* *
* @param lowerInclusive The lower inclusive accepted value. * @param lowerInclusive The lower inclusive accepted value.
* @param upperExclusive The upper exclusive accepted value (the exact value not accepted). * @param upperExclusive The upper exclusive accepted value (the exact value not accepted).
* @param <T> The number type.
* @return The matcher. * @return The matcher.
*/ */
public static <T extends Number> Matcher<T> inRange(@Nonnull T lowerInclusive, @Nonnull T upperExclusive) { public static <T extends Number> Matcher<T> inRange(@Nonnull T lowerInclusive, @Nonnull T upperExclusive) {
......
...@@ -27,6 +27,7 @@ public class ResourceUtils { ...@@ -27,6 +27,7 @@ public class ResourceUtils {
* *
* @param resource The resource path. * @param resource The resource path.
* @param dir Target directory. * @param dir Target directory.
* @return File created and written to.
*/ */
public static File copyResourceTo(String resource, File dir) { public static File copyResourceTo(String resource, File dir) {
if (!dir.exists()) { if (!dir.exists()) {
...@@ -55,6 +56,7 @@ public class ResourceUtils { ...@@ -55,6 +56,7 @@ public class ResourceUtils {
* *
* @param content The file content. * @param content The file content.
* @param target The file to write to. * @param target The file to write to.
* @return File written to.
*/ */
public static File writeContentTo(String content, File target) { public static File writeContentTo(String content, File target) {
assertNotNull("Content is null", content); assertNotNull("Content is null", content);
......
...@@ -202,6 +202,7 @@ public class ConsoleWatcher extends TestWatcher implements AutoCloseable { ...@@ -202,6 +202,7 @@ public class ConsoleWatcher extends TestWatcher implements AutoCloseable {
/** /**
* Set input to return the given bytes. * Set input to return the given bytes.
* @param in The bytes for input. * @param in The bytes for input.
* @return The console watcher.
*/ */
public ConsoleWatcher setInput(@Nonnull byte[] in) { public ConsoleWatcher setInput(@Nonnull byte[] in) {
inStream = new ByteArrayInputStream(in); inStream = new ByteArrayInputStream(in);
...@@ -211,6 +212,7 @@ public class ConsoleWatcher extends TestWatcher implements AutoCloseable { ...@@ -211,6 +212,7 @@ public class ConsoleWatcher extends TestWatcher implements AutoCloseable {
/** /**
* Set input with dynamic content. * Set input with dynamic content.
* @param in The input values. * @param in The input values.
* @return The console watcher.
*/ */
public ConsoleWatcher setInput(Object... in) { public ConsoleWatcher setInput(Object... in) {
assert in.length > 0 : "Require at least one input item"; 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