diff options
author | rbuj <robert.buj@gmail.com> | 2014-07-23 18:51:20 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-07-24 13:11:41 +0200 |
commit | b01358553082fd6f30781d0641c652f206c90c63 (patch) | |
tree | 24aa9acf9d1331ded2a12aef1cc230b267ea8e49 /jurt/com/sun/star/lib/uno/protocols/urp | |
parent | c8aa8226962db6ddbca6bfec8e415dfd5ecdda6f (diff) |
jurt: Enhanced For-Loops, code formatting, javadoc & overrides
Signed-off-by: Michael Stahl <mstahl@redhat.com>
Conflicts:
jurt/com/sun/star/lib/uno/environments/remote/JobQueue.java
Change-Id: I6d6324c5597fa472360a1b8bb4153dec647a36f0
Diffstat (limited to 'jurt/com/sun/star/lib/uno/protocols/urp')
-rw-r--r-- | jurt/com/sun/star/lib/uno/protocols/urp/Cache.java | 20 | ||||
-rw-r--r-- | jurt/com/sun/star/lib/uno/protocols/urp/urp.java | 34 |
2 files changed, 35 insertions, 19 deletions
diff --git a/jurt/com/sun/star/lib/uno/protocols/urp/Cache.java b/jurt/com/sun/star/lib/uno/protocols/urp/Cache.java index 14affb5bd974..544a06406648 100644 --- a/jurt/com/sun/star/lib/uno/protocols/urp/Cache.java +++ b/jurt/com/sun/star/lib/uno/protocols/urp/Cache.java @@ -21,18 +21,18 @@ package com.sun.star.lib.uno.protocols.urp; import java.util.HashMap; /** - An LRU cache for arbitrary objects. - - This class is not synchronized, as any necessary synchronization will already - take place in the client. -*/ + * An LRU cache for arbitrary objects. + * + * <p>This class is not synchronized, as any necessary synchronization will already + * take place in the client.</p> + */ final class Cache { /** - Create a cache. - - @param size the maximum cache size, must be between 0, inclusive, and - NOT_CACHED, exclusive - */ + * Create a cache. + * + * @param size the maximum cache size, must be between 0, inclusive, and + * NOT_CACHED, exclusive. + */ public Cache(int size) { maxSize = size; } 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 aac00536db92..08e7ef3380a2 100644 --- a/jurt/com/sun/star/lib/uno/protocols/urp/urp.java +++ b/jurt/com/sun/star/lib/uno/protocols/urp/urp.java @@ -46,10 +46,11 @@ import java.util.ArrayList; import java.util.Random; import java.util.StringTokenizer; -// This class internally relies on the availability of Java UNO type information -// for the interface type com.sun.star.bridge.XProtocolProperties, even though -// URP itself does not rely on that type. - +/** + * This class internally relies on the availability of Java UNO type information + * for the interface type <code>com.sun.star.bridge.XProtocolProperties</code>, + * even though URP itself does not rely on that type. + */ public final class urp implements IProtocol { public urp( IBridge bridge, String attributes, InputStream input, @@ -62,7 +63,10 @@ public final class urp implements IProtocol { forceSynchronous = parseAttributes(attributes); } - // @see IProtocol#init + /** + * + * @see IProtocol#init + */ public void init() throws IOException { synchronized (monitor) { if (state == STATE_INITIAL0) { @@ -71,7 +75,10 @@ public final class urp implements IProtocol { } } - // @see IProtocol#terminate + /** + * + * @see IProtocol#terminate + */ public void terminate() { synchronized (monitor) { state = STATE_TERMINATED; @@ -80,7 +87,10 @@ public final class urp implements IProtocol { } } - // @see IProtocol#readMessage + /** + * + * @see IProtocol#readMessage + */ public Message readMessage() throws IOException { for (;;) { if (!unmarshal.hasMore()) { @@ -108,7 +118,10 @@ public final class urp implements IProtocol { } } - // @see IProtocol#writeRequest + /** + * + * @see IProtocol#writeRequest + */ public boolean writeRequest( String oid, TypeDescription type, String function, ThreadId tid, Object[] arguments) @@ -133,7 +146,10 @@ public final class urp implements IProtocol { } } - // @see IProtocol#writeReply + /** + * + * @see IProtocol#writeReply + */ public void writeReply(boolean exception, ThreadId tid, Object result) throws IOException { |