public static boolean toBoolean(String stringValue) {if (stringValue == null)throw new NullPointerException(JGitText.get().expectedBooleanStringValue);final Boolean bool = toBooleanOrNull(stringValue);if (bool == null)throw new IllegalArgumentException(MessageFormat.format(JGitText.get().notABoolean, stringValue));return bool.booleanValue();}
public static bool ToBoolean(string stringValue){if (stringValue == null){throw new ArgumentNullException(JGitText.Get().expectedBooleanStringValue);}bool? @bool = ToBooleanOrNull(stringValue);if (@bool == null){throw new ArgumentException(MessageFormat.Format(JGitText.Get().notABoolean, stringValue));}return @bool.Value;}