Skip to content

Commit be84a09

Browse files
committed
Added default case for switch case, by moving the return statement into the default section
1 parent 2c0a01d commit be84a09

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/apache/commons/cli/PatternOptionBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ public static Object getValueClass(final char ch) {
129129
return PatternOptionBuilder.FILES_VALUE;
130130
case '/':
131131
return PatternOptionBuilder.URL_VALUE;
132+
default:
133+
return null;
132134
}
133-
134-
return null;
135135
}
136136

137137
/**

0 commit comments

Comments
 (0)