diff options
author | rbuj <robert.buj@gmail.com> | 2014-08-09 14:45:51 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-08-09 12:50:51 +0000 |
commit | bb8540a3b4fe0798669a1d355695c97d86ef58a0 (patch) | |
tree | fe73f6cb9b0373f30962889011928c2fa346cac0 | |
parent | ef933f02447c25cc0d6048a62e9bc08f3bca5470 (diff) |
jurt: Number parsing
Change-Id: I40721bdaae62f063c188546fedb4037e40f890fa
Reviewed-on: https://gerrit.libreoffice.org/10845
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
-rw-r--r-- | jurt/com/sun/star/lib/connections/socket/ConnectionDescriptor.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jurt/com/sun/star/lib/connections/socket/ConnectionDescriptor.java b/jurt/com/sun/star/lib/connections/socket/ConnectionDescriptor.java index f362dac800db..aec6a638e095 100644 --- a/jurt/com/sun/star/lib/connections/socket/ConnectionDescriptor.java +++ b/jurt/com/sun/star/lib/connections/socket/ConnectionDescriptor.java @@ -43,7 +43,7 @@ final class ConnectionDescriptor { host = value; } else if (key.equalsIgnoreCase("port")) { try { - port = Integer.valueOf(value).intValue(); + port = Integer.parseInt(value); } catch (NumberFormatException e) { throw new com.sun.star.lang.IllegalArgumentException( e.toString()); @@ -55,7 +55,7 @@ final class ConnectionDescriptor { } } else if (key.equalsIgnoreCase("backlog")) { try { - backlog = Integer.valueOf(value).intValue(); + backlog = Integer.parseInt(value); } catch (NumberFormatException e) { throw new com.sun.star.lang.IllegalArgumentException( e.toString()); |