File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
core/src/main/java/net/jbock/compiler/view Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ private static MethodSpec readRegularOptionMethod(
134134 .addParameter (token )
135135 .returns (context .optionType ());
136136
137- spec .beginControlFlow ("if ($N.length() <= 1 || $N.charAt(0) != '-')" , token , token )
137+ spec .beginControlFlow ("if ($N.length() < 2 || $N.charAt(0) != '-')" , token , token )
138138 .addStatement ("return null" )
139139 .endControlFlow ();
140140
@@ -311,15 +311,15 @@ private CodeBlock repeatablePositionalStream(Param param) {
311311 .build ();
312312 }
313313
314- public FieldSpec positionalParsersField () {
314+ FieldSpec positionalParsersField () {
315315 return positionalParsersField ;
316316 }
317317
318- public MethodSpec readMethod () {
318+ MethodSpec readMethod () {
319319 return readMethod ;
320320 }
321321
322- public MethodSpec readRegularOptionMethod () {
322+ MethodSpec readRegularOptionMethod () {
323323 return readRegularOptionMethod ;
324324 }
325325}
You can’t perform that action at this time.
0 commit comments