Skip to content

Commit f2d9e8a

Browse files
committed
Format OpService and DefaultOpService
Signed-off-by: squareys <[email protected]>
1 parent 9889b00 commit f2d9e8a

File tree

2 files changed

+20
-16
lines changed

2 files changed

+20
-16
lines changed

src/main/java/net/imagej/ops/DefaultOpService.java

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,9 @@ public <I extends RealType<I>, O extends RealType<O>> O convert(final O out,
197197
{
198198
@SuppressWarnings("unchecked")
199199
final IterableInterval<O> result =
200-
(IterableInterval<O>) run(net.imagej.ops.convert.ConvertIterableInterval.class, out,
201-
in, pixConvert);
200+
(IterableInterval<O>) run(
201+
net.imagej.ops.convert.ConvertIterableInterval.class, out, in,
202+
pixConvert);
202203
return result;
203204
}
204205

@@ -272,8 +273,8 @@ public Object join(final Object... args) {
272273
}
273274

274275
@Override
275-
public <A, B, C> C join(final C out, final A in, final ComputerOp<A, B> first,
276-
final ComputerOp<B, C> second)
276+
public <A, B, C> C join(final C out, final A in,
277+
final ComputerOp<A, B> first, final ComputerOp<B, C> second)
277278
{
278279
@SuppressWarnings("unchecked")
279280
final C result =
@@ -283,8 +284,9 @@ public <A, B, C> C join(final C out, final A in, final ComputerOp<A, B> first,
283284
}
284285

285286
@Override
286-
public <A, B, C> C join(final C out, final A in, final ComputerOp<A, B> first,
287-
final ComputerOp<B, C> second, final BufferFactory<A, B> bufferFactory)
287+
public <A, B, C> C join(final C out, final A in,
288+
final ComputerOp<A, B> first, final ComputerOp<B, C> second,
289+
final BufferFactory<A, B> bufferFactory)
288290
{
289291
@SuppressWarnings("unchecked")
290292
final C result =
@@ -311,8 +313,8 @@ public <A> A join(final A out, final A in,
311313
{
312314
@SuppressWarnings("unchecked")
313315
final A result =
314-
(A) run(net.imagej.ops.join.DefaultJoinComputers.class, out, in,
315-
ops, bufferFactory);
316+
(A) run(net.imagej.ops.join.DefaultJoinComputers.class, out, in, ops,
317+
bufferFactory);
316318
return result;
317319
}
318320

@@ -428,8 +430,7 @@ public <A, B extends Type<B>> IterableInterval<B> map(
428430
@SuppressWarnings("unchecked")
429431
final IterableInterval<B> result =
430432
(IterableInterval<B>) run(
431-
net.imagej.ops.map.MapIterableIntervalToView.class, input, op,
432-
type);
433+
net.imagej.ops.map.MapIterableIntervalToView.class, input, op, type);
433434
return result;
434435
}
435436

@@ -497,10 +498,11 @@ public <I, O> RandomAccessibleInterval<O> map(
497498
@SuppressWarnings("unchecked")
498499
final RandomAccessibleInterval<O> result =
499500
(RandomAccessibleInterval<O>) run(
500-
net.imagej.ops.map.neighborhood.MapNeighborhood.class, out, in, op, shape);
501+
net.imagej.ops.map.neighborhood.MapNeighborhood.class, out, in, op,
502+
shape);
501503
return result;
502504
}
503-
505+
504506
@Override
505507
public <I, O> RandomAccessibleInterval<O> map(
506508
final RandomAccessibleInterval<O> out,
@@ -510,7 +512,8 @@ public <I, O> RandomAccessibleInterval<O> map(
510512
@SuppressWarnings("unchecked")
511513
final RandomAccessibleInterval<O> result =
512514
(RandomAccessibleInterval<O>) run(
513-
net.imagej.ops.map.neighborhood.MapNeighborhoodWithCenter.class, out, in, func, shape);
515+
net.imagej.ops.map.neighborhood.MapNeighborhoodWithCenter.class, out,
516+
in, func, shape);
514517
return result;
515518
}
516519

src/main/java/net/imagej/ops/OpService.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,12 +255,13 @@ public interface OpService extends PTService<Op>, ImageJService {
255255

256256
/** Executes the "join" operation on the given arguments. */
257257
@OpMethod(op = net.imagej.ops.join.DefaultJoinComputerAndComputer.class)
258-
<A, B, C> C join(C out, A in, ComputerOp<A, B> first, ComputerOp<B, C> second);
258+
<A, B, C> C
259+
join(C out, A in, ComputerOp<A, B> first, ComputerOp<B, C> second);
259260

260261
/** Executes the "join" operation on the given arguments. */
261262
@OpMethod(op = net.imagej.ops.join.DefaultJoinComputerAndComputer.class)
262-
<A, B, C> C join(C out, A in, ComputerOp<A, B> first, ComputerOp<B, C> second,
263-
BufferFactory<A, B> bufferFactory);
263+
<A, B, C> C join(C out, A in, ComputerOp<A, B> first,
264+
ComputerOp<B, C> second, BufferFactory<A, B> bufferFactory);
264265

265266
/** Executes the "join" operation on the given arguments. */
266267
@OpMethod(op = net.imagej.ops.join.DefaultJoinInplaceAndInplace.class)

0 commit comments

Comments
 (0)