diff --git a/src/main/java/org/apache/commons/lang3/concurrent/TimedSemaphore.java b/src/main/java/org/apache/commons/lang3/concurrent/TimedSemaphore.java index 93b1fa385..d768bfdc9 100644 --- a/src/main/java/org/apache/commons/lang3/concurrent/TimedSemaphore.java +++ b/src/main/java/org/apache/commons/lang3/concurrent/TimedSemaphore.java @@ -68,7 +68,7 @@ import org.apache.commons.lang3.Validate; * semaphore.acquire(); // limit database load * performQuery(); // issue a query * } - * } catch(InterruptedException) { + * } catch (InterruptedException) { * // fall through * } * } diff --git a/src/main/java/org/apache/commons/lang3/text/translate/NumericEntityUnescaper.java b/src/main/java/org/apache/commons/lang3/text/translate/NumericEntityUnescaper.java index a238c9d43..59fb0de96 100644 --- a/src/main/java/org/apache/commons/lang3/text/translate/NumericEntityUnescaper.java +++ b/src/main/java/org/apache/commons/lang3/text/translate/NumericEntityUnescaper.java @@ -140,7 +140,7 @@ public class NumericEntityUnescaper extends CharSequenceTranslator { } else { entityValue = Integer.parseInt(input.subSequence(start, end).toString(), 10); } - } catch(final NumberFormatException nfe) { + } catch (final NumberFormatException nfe) { return 0; }