[Libreoffice-commits] core.git: jurt/com
Caolán McNamara
caolanm at redhat.com
Tue Dec 22 13:29:48 PST 2015
jurt/com/sun/star/lib/uno/protocols/urp/urp.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 7653682c35eca35415aa0131c3df4a3d104d8c5d
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Dec 22 20:30:34 2015 +0000
coverity#1326730 DMI: Dubious method invocation
Change-Id: Icf44c82fc485d0172df2a9fb2cbe6b2be61630a1
diff --git a/jurt/com/sun/star/lib/uno/protocols/urp/urp.java b/jurt/com/sun/star/lib/uno/protocols/urp/urp.java
index b527e64..5e7b328 100644
--- a/jurt/com/sun/star/lib/uno/protocols/urp/urp.java
+++ b/jurt/com/sun/star/lib/uno/protocols/urp/urp.java
@@ -199,7 +199,7 @@ public final class urp implements IProtocol {
if (propertiesTid == null) {
propertiesTid = ThreadId.createFresh();
}
- random = new Random().nextInt();
+ random = randomGenerator.nextInt();
writeRequest(
true, PROPERTIES_OID,
TypeDescription.getTypeDescription(XProtocolProperties.class),
@@ -723,6 +723,8 @@ public final class urp implements IProtocol {
private static final int MAX_RELEASE_QUEUE_SIZE = 100;
+ private static final Random randomGenerator = new Random();
+
private final DataInput input;
private final DataOutputStream output;
More information about the Libreoffice-commits
mailing list