Skip to content

Commit 0f80ce4

Browse files
committed
Replace usage of deprecated ClassUtils methods
1 parent 48cd88d commit 0f80ce4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/org/scijava/table/process/ResultsPostprocessor.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
import org.scijava.table.DefaultGenericTable;
4545
import org.scijava.table.GenericTable;
4646
import org.scijava.ui.UIService;
47-
import org.scijava.util.ClassUtils;
47+
import org.scijava.util.Types;
4848

4949
/**
5050
* A postprocessor which aggregates simple output values into a single table,
@@ -53,7 +53,7 @@
5353
* @author Curtis Rueden
5454
*/
5555
@Plugin(type = PostprocessorPlugin.class,
56-
priority = Priority.VERY_LOW_PRIORITY + 1)
56+
priority = Priority.VERY_LOW + 1)
5757
public class ResultsPostprocessor extends AbstractPostprocessorPlugin {
5858

5959
@Parameter(required = false)
@@ -79,7 +79,7 @@ public void process(final Module module) {
7979
});
8080

8181
if (outputs.isEmpty()) return; // no compatible outputs
82-
if (outputs.size() == 1 && ClassUtils.isText(outputs.get(0).getType())) {
82+
if (outputs.size() == 1 && Types.isText(outputs.get(0).getType())) {
8383
// sole compatible output is a string; let the TextDisplay handle it
8484
return;
8585
}
@@ -117,9 +117,9 @@ private boolean isSimple(final Module m, final ModuleItem<?> item) {
117117
}
118118

119119
private boolean isSimpleType(final Class<?> type) {
120-
return ClassUtils.isText(type) || //
121-
ClassUtils.isNumber(type) || //
122-
ClassUtils.isBoolean(type);
120+
return Types.isText(type) || //
121+
Types.isNumber(type) || //
122+
Types.isBoolean(type);
123123
}
124124

125125
private boolean isSimpleValue(final Object o) {

0 commit comments

Comments
 (0)