diff --git a/src/main/java/stormpot/ManagedPool.java b/src/main/java/stormpot/ManagedPool.java index 46f3d09c..01045d35 100644 --- a/src/main/java/stormpot/ManagedPool.java +++ b/src/main/java/stormpot/ManagedPool.java @@ -27,9 +27,9 @@ * Once you have created your pool, it is easy to expose it through the platform * MBeanServer, or any MBeanServer you like: * - * [source,java] + * [source,java,indent=0] * ---- - * include::../src/test/java/examples/Examples.java[tag=managedPoolExample] + * include::src/test/java/examples/Examples.java[tag=managedPoolExample] * ---- * * Using the platform MBeanServer will make the pool visible to tools like diff --git a/src/main/java/stormpot/MetricsRecorder.java b/src/main/java/stormpot/MetricsRecorder.java index e2c670de..190ea583 100644 --- a/src/main/java/stormpot/MetricsRecorder.java +++ b/src/main/java/stormpot/MetricsRecorder.java @@ -30,7 +30,7 @@ * * [source,java] * ---- - * include::../src/test/java/examples/DropwizardMetricsRecorder.java[lines=16..-1] + * include::src/test/java/examples/DropwizardMetricsRecorder.java[lines=16..-1] * ---- * * @since 2.3 diff --git a/src/main/java/stormpot/Pool.java b/src/main/java/stormpot/Pool.java index 81b82157..9ebd35fd 100644 --- a/src/main/java/stormpot/Pool.java +++ b/src/main/java/stormpot/Pool.java @@ -35,9 +35,9 @@ * {@link Poolable#release() releasing} that object again. By far the most * common idiom to achieve this is with a `try-finally` clause: * - * [source,java] + * [source,java,indent=0] * ---- - * include::../src/test/java/examples/Examples.java[tag=poolClaimExample] + * include::src/test/java/examples/Examples.java[tag=poolClaimExample] * ---- * * The pools are resizable, and can have their capacity changed at any time diff --git a/src/main/java/stormpot/PoolTap.java b/src/main/java/stormpot/PoolTap.java index 5d1f3b09..300ad615 100644 --- a/src/main/java/stormpot/PoolTap.java +++ b/src/main/java/stormpot/PoolTap.java @@ -72,9 +72,9 @@ public abstract class PoolTap { * Here's an example code snippet, where an object is claimed, printed to * `System.out`, and then released back to the pool: * - * [source,java] + * [source,java,indent=0] * ---- - * include::../src/test/java/examples/Examples.java[tag=poolClaimPrintExample] + * include::src/test/java/examples/Examples.java[tag=poolClaimPrintExample] * ---- * * Memory effects: diff --git a/src/main/java/stormpot/Poolable.java b/src/main/java/stormpot/Poolable.java index 3b1d1e75..23192a00 100644 --- a/src/main/java/stormpot/Poolable.java +++ b/src/main/java/stormpot/Poolable.java @@ -31,16 +31,16 @@ * * A simple correct implementation of the Poolable interface looks like this: * - * [source,java] + * [source,java,indent=0] * ---- - * include::../src/test/java/examples/Examples.java[tag=poolableGenericExample] + * include::src/test/java/examples/Examples.java[tag=poolableGenericExample] * ---- * * This can be shortened further by extending the {@link BasePoolable} class: * - * [source,java] + * [source,java,indent=0] * ---- - * include::../src/test/java/examples/Examples.java[tag=poolableBaseExample] + * include::src/test/java/examples/Examples.java[tag=poolableBaseExample] * ---- * * It is also possible to directly use the {@link Pooled} implementation, which diff --git a/src/main/java/stormpot/Reallocator.java b/src/main/java/stormpot/Reallocator.java index eb9c5525..bba92681 100644 --- a/src/main/java/stormpot/Reallocator.java +++ b/src/main/java/stormpot/Reallocator.java @@ -43,7 +43,7 @@ public interface Reallocator extends Allocator { * * This method is effectively equivalent to the following: * - * [source,java] + * [source,java,indent=0] * -- * include::src/test/java/examples/Examples.java[tag=reallocatorExample] * --