@@ -56,7 +56,7 @@ public final class InfoHelper {
56
56
URL = Objects .requireNonNull (props .getProperty ("url" ));
57
57
YEAR = Integer .parseInt (Objects .requireNonNull (props .getProperty ("year" )).trim ());
58
58
} catch (IOException ex ) {
59
- throw new Error ("Can't read resource: " + path , ex );
59
+ throw new IllegalStateException ("Can't read resource: " + path , ex );
60
60
}
61
61
}
62
62
@@ -146,9 +146,7 @@ private static String makeSpecialVariableReference(
146
146
147
147
148
148
private static String makeCommandLineKeyReference (final CommandLineHandler handler ) {
149
- final String key = handler .getKeyName ();
150
- final String descr = handler .getDescription ();
151
- return makeColumns (key , descr , 14 );
149
+ return makeColumns (handler .getKeyName (), handler .getDescription (), 14 );
152
150
}
153
151
154
152
@@ -171,7 +169,7 @@ private static String makeDirectiveReference(final AbstractDirectiveHandler dire
171
169
final String directiveName = directive .getFullName ();
172
170
final String descr =
173
171
(directive .isDeprecated () ? "{DEPRECATED} " : "" ) + directive .getReference () + " (" +
174
- activityPasses . toString () + ')' ;
172
+ activityPasses + ')' ;
175
173
return makeColumns (directiveName , descr , 16 );
176
174
}
177
175
@@ -182,15 +180,13 @@ private static String makeSpecialDirectiveReference(final String name, final Str
182
180
183
181
184
182
private static String makeOperatorReference (final AbstractOperator operator ) {
185
- final String operatorName = operator .getKeyword ();
186
- final String descr = operator .getReference ();
187
- return makeColumns (operatorName , descr , 14 );
183
+ return makeColumns (operator .getKeyword (), operator .getReference (), 14 );
188
184
}
189
185
190
186
191
187
private static String makeFunctionReference (final AbstractFunction func ) {
192
188
final String funcName = func .getName ();
193
- final String descr = func .getReference ();
189
+ final String description = func .getReference ();
194
190
195
191
final StringBuilder variants = new StringBuilder (" [" );
196
192
final String result = func .getResultType ().getSignature ().toUpperCase (Locale .ENGLISH );
@@ -211,7 +207,7 @@ private static String makeFunctionReference(final AbstractFunction func) {
211
207
variantIndex ++;
212
208
}
213
209
variants .append (']' );
214
- return makeColumns (funcName , descr , 24 ) + variants . toString () ;
210
+ return makeColumns (funcName , description , 24 ) + variants ;
215
211
}
216
212
217
213
0 commit comments