if (arguments.length > 0) { try { final ObjectStreamClass stream= ObjectStreamClass.lookup(Class.forName(arguments[0])); if (stream != null) { System.out.println(stream.getSerialVersionUID()); return; } else System.err.println(ERROR_PREFIX + SerialVersionMessages.getFormattedString("SerialVersionComputer.not.serializable", arguments[0])); } catch (ClassNotFoundException exception) { System.err.println(ERROR_PREFIX + SerialVersionMessages.getFormattedString("SerialVersionComputer.not.resolvable", arguments[0])); } } else System.err.println(ERROR_PREFIX + SerialVersionMessages.getString("SerialVersionComputer.no.argument")); System.out.println(1);
boolean success= false; try { if (arguments.length > 0) { try { final ObjectStreamClass stream= ObjectStreamClass.lookup(Class.forName(arguments[0])); if (stream != null) { System.out.println(RESULT_PREFIX + String.valueOf(stream.getSerialVersionUID()) + RESULT_POSTFIX); success= true; } else System.err.println(ERROR_PREFIX + SerialVersionMessages.getFormattedString("SerialVersionComputer.not.serializable", arguments[0]) + ERROR_POSTFIX); } catch (ClassNotFoundException exception) { System.err.println(ERROR_PREFIX + SerialVersionMessages.getFormattedString("SerialVersionComputer.not.resolvable", arguments[0]) + ERROR_POSTFIX); } } else System.err.println(ERROR_PREFIX + SerialVersionMessages.getString("SerialVersionComputer.no.argument") + ERROR_POSTFIX); } finally { if (!success) System.out.println(RESULT_PREFIX + String.valueOf(1) + RESULT_POSTFIX); }
	public static void main(final String[] arguments) {		if (arguments.length > 0) {			try {				final ObjectStreamClass stream= ObjectStreamClass.lookup(Class.forName(arguments[0]));				if (stream != null) {					System.out.println(stream.getSerialVersionUID());					return;				} else					System.err.println(ERROR_PREFIX + SerialVersionMessages.getFormattedString("SerialVersionComputer.not.serializable", arguments[0])); //$NON-NLS-1$			} catch (ClassNotFoundException exception) {				System.err.println(ERROR_PREFIX + SerialVersionMessages.getFormattedString("SerialVersionComputer.not.resolvable", arguments[0])); //$NON-NLS-1$			}		} else			System.err.println(ERROR_PREFIX + SerialVersionMessages.getString("SerialVersionComputer.no.argument")); //$NON-NLS-1$		System.out.println(1);	}