Skip to content

Commit 44ccacd

Browse files
committed
ConversionUtils: clean up style
1 parent a0a24fd commit 44ccacd

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

src/main/java/org/scijava/util/ConversionUtils.java

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
* %%
99
* Redistribution and use in source and binary forms, with or without
1010
* modification, are permitted provided that the following conditions are met:
11-
*
11+
*
1212
* 1. Redistributions of source code must retain the above copyright notice,
1313
* this list of conditions and the following disclaimer.
1414
* 2. Redistributions in binary form must reproduce the above copyright notice,
1515
* this list of conditions and the following disclaimer in the documentation
1616
* and/or other materials provided with the distribution.
17-
*
17+
*
1818
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1919
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2020
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -34,16 +34,17 @@
3434
import java.lang.reflect.Type;
3535

3636
import org.scijava.convert.ConversionRequest;
37-
import org.scijava.convert.Converter;
3837
import org.scijava.convert.ConvertService;
38+
import org.scijava.convert.Converter;
3939
import org.scijava.convert.DefaultConverter;
40+
import org.scijava.prefs.DefaultPrefService;
4041

4142
/**
4243
* Useful methods for converting and casting between classes and types.
4344
* <p>
4445
* For extensible type conversion, use {@link ConvertService}.
4546
* </p>
46-
*
47+
*
4748
* @author Curtis Rueden
4849
* @author Mark Hiner
4950
*/
@@ -64,7 +65,7 @@ private ConversionUtils() {
6465
/**
6566
* Converts the given string value to an enumeration constant of the specified
6667
* type.
67-
*
68+
*
6869
* @param src The value to convert.
6970
* @param dest The type of the enumeration constant.
7071
* @return The converted enumeration constant, or null if the type is not an
@@ -99,7 +100,7 @@ public static <T> T cast(final Object src, final Class<T> dest) {
99100
/**
100101
* Checks whether objects of the given class can be cast to the specified
101102
* type.
102-
*
103+
*
103104
* @see #cast(Object, Class)
104105
*/
105106
public static boolean canCast(final Class<?> src, final Class<?> dest) {
@@ -108,7 +109,7 @@ public static boolean canCast(final Class<?> src, final Class<?> dest) {
108109

109110
/**
110111
* Checks whether the given object can be cast to the specified type.
111-
*
112+
*
112113
* @see #cast(Object, Class)
113114
*/
114115
public static boolean canCast(final Object src, final Class<?> dest) {
@@ -176,8 +177,8 @@ public static <T> T getNullValue(final Class<T> type) {
176177
/**
177178
* Sets the {@link ConvertService}
178179
*/
179-
public static void setDelegateService(
180-
final ConvertService conversionService, final double priority)
180+
public static void setDelegateService(final ConvertService conversionService,
181+
final double priority)
181182
{
182183
if (ConversionUtils.conversionService == null ||
183184
Double.compare(priority, servicePriority) > 0)
@@ -264,8 +265,8 @@ public static Class<?> getComponentClass(final Type type) {
264265
//-- Helper methods --
265266

266267
/**
267-
* Gets the delegate {@link ConvertService} to use for preference
268-
* operations. If this service has not been explicitly set, then a
268+
* Gets the delegate {@link ConvertService} to use for preference operations.
269+
* If this service has not been explicitly set, then a
269270
* {@link DefaultPrefService} will be used.
270271
*
271272
* @return The current {@link ConvertService} to use for delegation.

0 commit comments

Comments
 (0)