@@ -56,7 +56,7 @@ public final class InfoHelper {
5656 URL = Objects .requireNonNull (props .getProperty ("url" ));
5757 YEAR = Integer .parseInt (Objects .requireNonNull (props .getProperty ("year" )).trim ());
5858 } catch (IOException ex ) {
59- throw new Error ("Can't read resource: " + path , ex );
59+ throw new IllegalStateException ("Can't read resource: " + path , ex );
6060 }
6161 }
6262
@@ -146,9 +146,7 @@ private static String makeSpecialVariableReference(
146146
147147
148148 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 );
152150 }
153151
154152
@@ -171,7 +169,7 @@ private static String makeDirectiveReference(final AbstractDirectiveHandler dire
171169 final String directiveName = directive .getFullName ();
172170 final String descr =
173171 (directive .isDeprecated () ? "{DEPRECATED} " : "" ) + directive .getReference () + " (" +
174- activityPasses . toString () + ')' ;
172+ activityPasses + ')' ;
175173 return makeColumns (directiveName , descr , 16 );
176174 }
177175
@@ -182,15 +180,13 @@ private static String makeSpecialDirectiveReference(final String name, final Str
182180
183181
184182 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 );
188184 }
189185
190186
191187 private static String makeFunctionReference (final AbstractFunction func ) {
192188 final String funcName = func .getName ();
193- final String descr = func .getReference ();
189+ final String description = func .getReference ();
194190
195191 final StringBuilder variants = new StringBuilder (" [" );
196192 final String result = func .getResultType ().getSignature ().toUpperCase (Locale .ENGLISH );
@@ -211,7 +207,7 @@ private static String makeFunctionReference(final AbstractFunction func) {
211207 variantIndex ++;
212208 }
213209 variants .append (']' );
214- return makeColumns (funcName , descr , 24 ) + variants . toString () ;
210+ return makeColumns (funcName , description , 24 ) + variants ;
215211 }
216212
217213
0 commit comments