[Libreoffice-commits] core.git: jurt/com
rbuj
robert.buj at gmail.com
Sat Aug 9 05:51:10 PDT 2014
jurt/com/sun/star/lib/connections/socket/ConnectionDescriptor.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit bb8540a3b4fe0798669a1d355695c97d86ef58a0
Author: rbuj <robert.buj at gmail.com>
Date: Sat Aug 9 14:45:51 2014 +0200
jurt: Number parsing
Change-Id: I40721bdaae62f063c188546fedb4037e40f890fa
Reviewed-on: https://gerrit.libreoffice.org/10845
Reviewed-by: David Tardon <dtardon at redhat.com>
Tested-by: David Tardon <dtardon at redhat.com>
diff --git a/jurt/com/sun/star/lib/connections/socket/ConnectionDescriptor.java b/jurt/com/sun/star/lib/connections/socket/ConnectionDescriptor.java
index f362dac..aec6a63 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());
More information about the Libreoffice-commits
mailing list