summaryrefslogtreecommitdiff
path: root/bridges
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-12 14:05:04 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-12-15 12:36:40 +0000
commit454ddddd9995ad7c6f865729d160814f5a9f093a (patch)
tree15b5ee999ec504002cc727284aea0882cc82b01e /bridges
parentf8fbef265329dc2e6e153d22c0a3317fdc0789e1 (diff)
java: remove some unused fields and variables
Change-Id: I5d6071096307adbe7df0178000346cf915afa3e7 Reviewed-on: https://gerrit.libreoffice.org/13477 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'bridges')
-rw-r--r--bridges/test/java_uno/any/TestAny.java20
-rw-r--r--bridges/test/java_uno/equals/TestEquals.java2
-rw-r--r--bridges/test/lib/TestBed.java2
-rw-r--r--bridges/test/testclient.java2
4 files changed, 3 insertions, 23 deletions
diff --git a/bridges/test/java_uno/any/TestAny.java b/bridges/test/java_uno/any/TestAny.java
index 752f2c303d3c..1e1f066dde06 100644
--- a/bridges/test/java_uno/any/TestAny.java
+++ b/bridges/test/java_uno/any/TestAny.java
@@ -2182,10 +2182,6 @@ final class TestAny {
super(0);
}
- public static Enum1 fromInt(int value) {
- return new Enum1();
- }
-
@Override
public boolean equals(Object obj) {
return obj != null && obj.getClass() == Enum1.class;
@@ -2216,10 +2212,6 @@ final class TestAny {
private static class BaseException extends com.sun.star.uno.Exception {
public BaseException() {}
- private BaseException(String message) {
- super(message);
- }
-
@Override
public boolean equals(Object obj) {
return obj != null && obj.getClass() == BaseException.class;
@@ -2229,10 +2221,6 @@ final class TestAny {
private static class DerivedException extends BaseException {
public DerivedException() {}
- public DerivedException(String message) {
- super(message);
- }
-
@Override
public boolean equals(Object obj) {
return obj != null && obj.getClass() == DerivedException.class;
@@ -2244,10 +2232,6 @@ final class TestAny {
{
public BaseRuntimeException() {}
- private BaseRuntimeException(String message) {
- super(message);
- }
-
@Override
public boolean equals(Object obj) {
return obj != null
@@ -2259,10 +2243,6 @@ final class TestAny {
{
public DerivedRuntimeException() {}
- public DerivedRuntimeException(String message) {
- super(message);
- }
-
@Override
public boolean equals(Object obj) {
return obj != null
diff --git a/bridges/test/java_uno/equals/TestEquals.java b/bridges/test/java_uno/equals/TestEquals.java
index 5e6c49023c32..b77651949143 100644
--- a/bridges/test/java_uno/equals/TestEquals.java
+++ b/bridges/test/java_uno/equals/TestEquals.java
@@ -94,7 +94,7 @@ public final class TestEquals {
prov.getInstance(INSTANCE2));
XConnection connection = acceptor.accept(CONNECTION_DESCRIPTION);
System.out.println("Client, 2nd connection: ...connected...");
- XBridge bridge2 = factory.createBridge(
+ factory.createBridge(
"", PROTOCOL_DESCRIPTION, connection, prov);
System.out.println("Client, 2nd connection: ...bridged.");
synchronized (lock) {
diff --git a/bridges/test/lib/TestBed.java b/bridges/test/lib/TestBed.java
index 3e3323568666..cff5698e2a5c 100644
--- a/bridges/test/lib/TestBed.java
+++ b/bridges/test/lib/TestBed.java
@@ -167,7 +167,7 @@ public final class TestBed {
XConnection connection = acceptor.accept(
connectionDescription);
System.out.println("Server: ...connected...");
- XBridge bridge = factory.createBridge(
+ factory.createBridge(
"", protocolDescription, connection, provider);
System.out.println("Server: ...bridged.");
}
diff --git a/bridges/test/testclient.java b/bridges/test/testclient.java
index 41e501060cbd..933b2ebdd451 100644
--- a/bridges/test/testclient.java
+++ b/bridges/test/testclient.java
@@ -115,7 +115,7 @@ public class testclient
if( null != xConnection )
{
System.out.println( "after connect" );
- com.sun.star.uno.IBridge bridge = UnoRuntime.getBridgeByName(
+ UnoRuntime.getBridgeByName(
"java",
null,
"remote",