[Libreoffice-commits] core.git: javaunohelper/com
Robert Antoni Buj i Gelonch
robert.buj at gmail.com
Tue Sep 23 01:04:23 PDT 2014
javaunohelper/com/sun/star/comp/helper/ComponentContext.java | 1 -
javaunohelper/com/sun/star/lib/uno/adapter/InputStreamToXInputStreamAdapter.java | 2 +-
javaunohelper/com/sun/star/lib/uno/adapter/OutputStreamToXOutputStreamAdapter.java | 2 +-
javaunohelper/com/sun/star/lib/uno/adapter/XInputStreamToInputStreamAdapter.java | 2 +-
javaunohelper/com/sun/star/lib/uno/adapter/XOutputStreamToByteArrayAdapter.java | 2 +-
javaunohelper/com/sun/star/lib/uno/adapter/XOutputStreamToOutputStreamAdapter.java | 2 +-
6 files changed, 5 insertions(+), 6 deletions(-)
New commits:
commit 6ee1a5438061712d05e5a8a6b9820e27c3ab21f6
Author: Robert Antoni Buj i Gelonch <robert.buj at gmail.com>
Date: Mon Sep 22 11:14:39 2014 +0200
javaunohelper: Using "final" modifier whenever applicable in java
All classes that belongs to the com.sun.star.lib.uno.adapter package are not part of the stable URE interface.
(cf. <http://api.libreoffice.org/docs/java/ref/index.html>), for that reason those classes may be final.
Remove unused import in com.sun.star.comp.helper.ComponentContext class.
Change-Id: I68be8da4324f5163505e65365bf49a6a9cd00672
Signed-off-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/javaunohelper/com/sun/star/comp/helper/ComponentContext.java b/javaunohelper/com/sun/star/comp/helper/ComponentContext.java
index 563c0a9..0326ffa 100644
--- a/javaunohelper/com/sun/star/comp/helper/ComponentContext.java
+++ b/javaunohelper/com/sun/star/comp/helper/ComponentContext.java
@@ -29,7 +29,6 @@ import com.sun.star.lang.XEventListener;
import com.sun.star.lang.EventObject;
import java.util.ArrayList;
-import java.util.HashMap;
import java.util.Hashtable;
import java.util.Map;
diff --git a/javaunohelper/com/sun/star/lib/uno/adapter/InputStreamToXInputStreamAdapter.java b/javaunohelper/com/sun/star/lib/uno/adapter/InputStreamToXInputStreamAdapter.java
index 4999463..b802520 100644
--- a/javaunohelper/com/sun/star/lib/uno/adapter/InputStreamToXInputStreamAdapter.java
+++ b/javaunohelper/com/sun/star/lib/uno/adapter/InputStreamToXInputStreamAdapter.java
@@ -27,7 +27,7 @@ import java.io.InputStream;
This allows users to access an <code>InputStream</code>
as if it were an <code>XInputStream</code>.
*/
-public class InputStreamToXInputStreamAdapter implements XInputStream {
+public final class InputStreamToXInputStreamAdapter implements XInputStream {
/**
* Internal store to the InputStream
diff --git a/javaunohelper/com/sun/star/lib/uno/adapter/OutputStreamToXOutputStreamAdapter.java b/javaunohelper/com/sun/star/lib/uno/adapter/OutputStreamToXOutputStreamAdapter.java
index 4991e86..954888c 100644
--- a/javaunohelper/com/sun/star/lib/uno/adapter/OutputStreamToXOutputStreamAdapter.java
+++ b/javaunohelper/com/sun/star/lib/uno/adapter/OutputStreamToXOutputStreamAdapter.java
@@ -27,7 +27,7 @@ import java.io.OutputStream;
object in a Java. This allows users to access an <code>OutputStream</code>
as if it were an <code>XOutputStream</code>.
*/
-public class OutputStreamToXOutputStreamAdapter implements XOutputStream {
+public final class OutputStreamToXOutputStreamAdapter implements XOutputStream {
/**
* Internal handle to the OutputStream
diff --git a/javaunohelper/com/sun/star/lib/uno/adapter/XInputStreamToInputStreamAdapter.java b/javaunohelper/com/sun/star/lib/uno/adapter/XInputStreamToInputStreamAdapter.java
index 1a96828..2d9652e 100644
--- a/javaunohelper/com/sun/star/lib/uno/adapter/XInputStreamToInputStreamAdapter.java
+++ b/javaunohelper/com/sun/star/lib/uno/adapter/XInputStreamToInputStreamAdapter.java
@@ -28,7 +28,7 @@ import java.io.InputStream;
* an <code>XInputStream</code> as if it were an
* <code>InputStream</code>.
*/
-public class XInputStreamToInputStreamAdapter extends InputStream {
+public final class XInputStreamToInputStreamAdapter extends InputStream {
/**
* Internal handle to the XInputStream
diff --git a/javaunohelper/com/sun/star/lib/uno/adapter/XOutputStreamToByteArrayAdapter.java b/javaunohelper/com/sun/star/lib/uno/adapter/XOutputStreamToByteArrayAdapter.java
index ad60793..9ebcb06 100644
--- a/javaunohelper/com/sun/star/lib/uno/adapter/XOutputStreamToByteArrayAdapter.java
+++ b/javaunohelper/com/sun/star/lib/uno/adapter/XOutputStreamToByteArrayAdapter.java
@@ -27,7 +27,7 @@ package com.sun.star.lib.uno.adapter;
import com.sun.star.io.*;
import com.sun.star.lib.uno.helper.ComponentBase;
-public class XOutputStreamToByteArrayAdapter
+public final class XOutputStreamToByteArrayAdapter
extends ComponentBase
implements XOutputStream
{
diff --git a/javaunohelper/com/sun/star/lib/uno/adapter/XOutputStreamToOutputStreamAdapter.java b/javaunohelper/com/sun/star/lib/uno/adapter/XOutputStreamToOutputStreamAdapter.java
index ecfee86..478dfc4 100644
--- a/javaunohelper/com/sun/star/lib/uno/adapter/XOutputStreamToOutputStreamAdapter.java
+++ b/javaunohelper/com/sun/star/lib/uno/adapter/XOutputStreamToOutputStreamAdapter.java
@@ -29,7 +29,7 @@ import java.io.OutputStream;
* an <code>XOutputStream</code> as if it were an
* <code>OutputStream</code>.
*/
-public class XOutputStreamToOutputStreamAdapter extends OutputStream {
+public final class XOutputStreamToOutputStreamAdapter extends OutputStream {
/**
* Internal handle to the XInputStream
More information about the Libreoffice-commits
mailing list