◐ Shell
reader mode source ↗
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
File filter
Conversations
Jump to
Diff view
Apply and reload
Show whitespace
Diff view
Apply and reload
9 changes: 8 additions & 1 deletion src/main/java/org/scijava/command/CommandModuleItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,14 @@ public T getMaximumValue() {

@Override
public Number getStepSize() {
return tValue(getParameter().stepSize(), Number.class);
}

@Override
Expand Down
6 changes: 5 additions & 1 deletion src/test/java/org/scijava/command/InvalidCommandTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ public void testValid() {
final List<ValidityProblem> problems = info.getProblems();
assertNotNull(problems);
assertEquals(0, problems.size());
}

@Test
Expand Down @@ -101,7 +105,7 @@ public void testInvalid() {
@Plugin(type = Command.class)
public static class ValidCommand implements Command {

@Parameter
private double x;

@Parameter(type = ItemIO.OUTPUT)
Expand Down
Toggle all file notes Toggle all file annotations