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@redhat.com>
This commit is contained in:
Robert Antoni Buj i Gelonch 2014-09-22 11:14:39 +02:00 committed by Stephan Bergmann
parent 15c609f33d
commit 6ee1a54380
6 changed files with 5 additions and 6 deletions

View file

@ -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;

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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
{

View file

@ -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