java: add @Override annotation to overriding methods
Change-Id: I086964c6f6ce52c60c52b6dbc445d3c21d22c80a
This commit is contained in:
@@ -157,6 +157,7 @@ public class LocalOfficeWindow
|
||||
class ComponentEventHandler
|
||||
extends java.awt.event.ComponentAdapter
|
||||
{
|
||||
@Override
|
||||
public void componentHidden( java.awt.event.ComponentEvent e)
|
||||
{
|
||||
// only when we become invisible, we might lose our system window
|
||||
@@ -167,6 +168,7 @@ public class LocalOfficeWindow
|
||||
{} // ignore
|
||||
}
|
||||
|
||||
@Override
|
||||
public void componentShown( java.awt.event.ComponentEvent e)
|
||||
{
|
||||
// only when we become visible, we get a system window
|
||||
@@ -175,6 +177,7 @@ public class LocalOfficeWindow
|
||||
}
|
||||
|
||||
/// Overriding java.awt.Component.setVisible() due to Java bug (no showing event).
|
||||
@Override
|
||||
public void setVisible( boolean b )
|
||||
{
|
||||
super.setVisible(b);
|
||||
@@ -277,6 +280,7 @@ public class LocalOfficeWindow
|
||||
throw new InterruptedException();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
while ( aWatchedThread != null )
|
||||
|
@@ -74,6 +74,7 @@ public class CallWatchThread extends Thread
|
||||
notify();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
dbgPrint( "CallWatchThread(" + this + ".run(" + aTag + ") ***** STARTED *****" );
|
||||
|
@@ -739,6 +739,7 @@ public class LocalOfficeConnection
|
||||
start();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
java.io.BufferedReader r = new java.io.BufferedReader(
|
||||
new java.io.InputStreamReader(m_in) );
|
||||
|
@@ -158,6 +158,7 @@ public class LocalOfficeWindow
|
||||
|
||||
|
||||
/// Overriding java.awt.Component.setVisible() due to Java bug (no showing event).
|
||||
@Override
|
||||
public void setVisible( boolean b )
|
||||
{
|
||||
super.setVisible(b);
|
||||
@@ -220,6 +221,7 @@ public class LocalOfficeWindow
|
||||
/** We make sure that the office window is notified that the parent
|
||||
* will be removed.
|
||||
*/
|
||||
@Override
|
||||
public void removeNotify()
|
||||
{
|
||||
try {
|
||||
|
@@ -288,6 +288,7 @@ public class OOoBean
|
||||
final OfficeConnection iConn = getOOoConnection();
|
||||
|
||||
Thread aConnectorThread = new Thread() {
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
com.sun.star.lang.XMultiComponentFactory aFactory =
|
||||
@@ -1306,6 +1307,7 @@ xLayoutManager.showElement("private:resource/menubar/menubar");
|
||||
/**
|
||||
@deprecated
|
||||
*/
|
||||
@Override
|
||||
public void paint( java.awt.Graphics aGraphics )
|
||||
{
|
||||
}
|
||||
@@ -1429,6 +1431,7 @@ xLayoutManager.showElement("private:resource/menubar/menubar");
|
||||
}
|
||||
|
||||
/// watching the connection
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
dbgPrint( "EventListener(" + aTag + ").run()" );
|
||||
|
@@ -669,6 +669,7 @@ public class OOoBeanTest
|
||||
setLayout(new BorderLayout());
|
||||
add(b, BorderLayout.CENTER);
|
||||
}
|
||||
@Override
|
||||
public Dimension getPreferredSize()
|
||||
{
|
||||
return new Dimension(200, 200);
|
||||
|
@@ -38,6 +38,7 @@ public class Test
|
||||
f.validate();
|
||||
|
||||
f.addWindowListener(new WindowAdapter() {
|
||||
@Override
|
||||
public void windowClosing( java.awt.event.WindowEvent e){
|
||||
b.stopOOoConnection();
|
||||
System.exit(0);
|
||||
|
@@ -32,6 +32,7 @@ public class OOoViewer extends Applet {
|
||||
|
||||
Object m_objBean;
|
||||
|
||||
@Override
|
||||
public void init() {
|
||||
try {
|
||||
if (m_loader == null) {
|
||||
@@ -59,6 +60,7 @@ public class OOoViewer extends Applet {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void start() {
|
||||
try {
|
||||
Class beanClass = m_loader.loadClass("com.sun.star.comp.beans.OOoBean");
|
||||
@@ -94,6 +96,7 @@ public class OOoViewer extends Applet {
|
||||
validate();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stop() {
|
||||
try {
|
||||
Method methStop = m_objBean.getClass().getMethod(
|
||||
@@ -110,9 +113,11 @@ public class OOoViewer extends Applet {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void destroy() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void paint(Graphics g) {
|
||||
}
|
||||
}
|
||||
@@ -126,6 +131,7 @@ final class CustomURLClassLoader extends URLClassLoader {
|
||||
super( urls );
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Class findClass( String name ) throws ClassNotFoundException {
|
||||
// This is only called via this.loadClass -> super.loadClass ->
|
||||
// this.findClass, after this.loadClass has already called
|
||||
@@ -136,6 +142,7 @@ final class CustomURLClassLoader extends URLClassLoader {
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
protected Class loadClass( String name, boolean resolve )
|
||||
throws ClassNotFoundException
|
||||
{
|
||||
@@ -163,6 +170,7 @@ final class CustomURLClassLoader extends URLClassLoader {
|
||||
resourcePaths.add(rurl);
|
||||
}
|
||||
|
||||
@Override
|
||||
public URL getResource(String name) {
|
||||
if (resourcePaths == null) return null;
|
||||
|
||||
|
@@ -50,6 +50,7 @@ public final class JNI_info_holder
|
||||
|
||||
private native void finalize( long jni_info_handle );
|
||||
|
||||
@Override
|
||||
protected void finalize()
|
||||
{
|
||||
finalize( s_jni_info_handle );
|
||||
|
@@ -94,6 +94,7 @@ public final class JNI_proxy implements java.lang.reflect.InvocationHandler
|
||||
|
||||
private native void finalize( long bridge_handle );
|
||||
|
||||
@Override
|
||||
public void finalize()
|
||||
{
|
||||
AsynchronousFinalizer.add(new AsynchronousFinalizer.Job() {
|
||||
|
@@ -36,10 +36,12 @@ import test.lib.TestBed;
|
||||
* object, they must have the same hash code.</p>
|
||||
*/
|
||||
public final class Bug107753_Test extends ComplexTestCase {
|
||||
@Override
|
||||
public String getTestObjectName() {
|
||||
return getClass().getName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getTestMethodNames() {
|
||||
return new String[] { "test" };
|
||||
}
|
||||
@@ -54,6 +56,7 @@ public final class Bug107753_Test extends ComplexTestCase {
|
||||
new Client().execute();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean run(XComponentContext context) throws Throwable {
|
||||
boolean success = true;
|
||||
XTransport transport = UnoRuntime.queryInterface(
|
||||
|
@@ -37,10 +37,12 @@ import test.lib.TestBed;
|
||||
* the code.</p>
|
||||
*/
|
||||
public final class Bug108825_Test extends ComplexTestCase {
|
||||
@Override
|
||||
public String getTestObjectName() {
|
||||
return getClass().getName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getTestMethodNames() {
|
||||
return new String[] { "test" };
|
||||
}
|
||||
@@ -55,6 +57,7 @@ public final class Bug108825_Test extends ComplexTestCase {
|
||||
new Client().execute();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean run(XComponentContext context) throws Throwable {
|
||||
XTest test = UnoRuntime.queryInterface(
|
||||
XTest.class, getBridge(context).getInstance("Test"));
|
||||
@@ -84,6 +87,7 @@ public final class Bug108825_Test extends ComplexTestCase {
|
||||
}
|
||||
|
||||
private final class Dummy implements XDummy {
|
||||
@Override
|
||||
protected void finalize() {
|
||||
synchronized (lock) {
|
||||
++finalizedCount;
|
||||
|
@@ -43,6 +43,7 @@ import test.lib.TestBed;
|
||||
* has not garbage-collected the object by then.</p>
|
||||
*/
|
||||
public final class Bug110892_Test extends ComplexTestCase {
|
||||
@Override
|
||||
public String[] getTestMethodNames() {
|
||||
return new String[] { "test" };
|
||||
}
|
||||
@@ -58,6 +59,7 @@ public final class Bug110892_Test extends ComplexTestCase {
|
||||
new Client().execute();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean run(XComponentContext context) throws Throwable {
|
||||
XTest test = UnoRuntime.queryInterface(
|
||||
XTest.class, getBridge(context).getInstance("Test"));
|
||||
|
@@ -36,6 +36,7 @@ import test.lib.TestBed;
|
||||
* short-cutting to the local object.</P>
|
||||
*/
|
||||
public final class Bug111153_Test extends ComplexTestCase {
|
||||
@Override
|
||||
public String[] getTestMethodNames() {
|
||||
return new String[] { "test" };
|
||||
}
|
||||
@@ -50,6 +51,7 @@ public final class Bug111153_Test extends ComplexTestCase {
|
||||
new Client().execute();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean run(XComponentContext context) throws Throwable {
|
||||
XTransport t = UnoRuntime.queryInterface(
|
||||
XTransport.class, getBridge(context).getInstance("Transport"));
|
||||
|
@@ -35,6 +35,7 @@ import test.lib.TestBed;
|
||||
* a fresh, unterminated bridge.</p>
|
||||
*/
|
||||
public final class Bug114133_Test extends ComplexTestCase {
|
||||
@Override
|
||||
public String[] getTestMethodNames() {
|
||||
return new String[] { "test" };
|
||||
}
|
||||
@@ -50,6 +51,7 @@ public final class Bug114133_Test extends ComplexTestCase {
|
||||
new Client().execute();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean run(XComponentContext context) throws Throwable {
|
||||
new WaitUnreachable(getBridge(context).getInstance("Test")).
|
||||
waitUnreachable();
|
||||
|
@@ -36,6 +36,7 @@ import test.lib.TestBed;
|
||||
* create different bridges.</p>
|
||||
*/
|
||||
public final class Bug51323_Test extends ComplexTestCase {
|
||||
@Override
|
||||
public String[] getTestMethodNames() {
|
||||
return new String[] { "test" };
|
||||
}
|
||||
@@ -51,6 +52,7 @@ public final class Bug51323_Test extends ComplexTestCase {
|
||||
new Client().execute();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean run(XComponentContext context) throws Throwable {
|
||||
XConnection connection =
|
||||
Connector.create(context).connect(getConnectionDescription());
|
||||
|
@@ -28,6 +28,7 @@ import complexlib.ComplexTestCase;
|
||||
import test.lib.TestBed;
|
||||
|
||||
public final class Bug92174_Test extends ComplexTestCase {
|
||||
@Override
|
||||
public String[] getTestMethodNames() {
|
||||
return new String[] { "test" };
|
||||
}
|
||||
@@ -42,6 +43,7 @@ public final class Bug92174_Test extends ComplexTestCase {
|
||||
new Client().execute();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean run(XComponentContext context) throws Throwable {
|
||||
XTransport t = UnoRuntime.queryInterface(
|
||||
XTransport.class, getBridge(context).getInstance("Transport"));
|
||||
|
@@ -41,10 +41,12 @@ import test.lib.TestBed;
|
||||
* considers the process hanging if it has not completed by then.</p>
|
||||
*/
|
||||
public final class Bug97697_Test extends ComplexTestCase {
|
||||
@Override
|
||||
public String getTestObjectName() {
|
||||
return getClass().getName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getTestMethodNames() {
|
||||
return new String[] { "test" };
|
||||
}
|
||||
@@ -59,6 +61,7 @@ public final class Bug97697_Test extends ComplexTestCase {
|
||||
new Client().execute();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean run(XComponentContext context) throws Throwable {
|
||||
XTransport transport = UnoRuntime.queryInterface(
|
||||
XTransport.class, getBridge(context).getInstance("Transport"));
|
||||
|
@@ -44,10 +44,12 @@ import test.lib.TestBed;
|
||||
* considers the process hanging if it has not completed by then.</p>
|
||||
*/
|
||||
public final class Bug98508_Test extends ComplexTestCase {
|
||||
@Override
|
||||
public String getTestObjectName() {
|
||||
return getClass().getName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getTestMethodNames() {
|
||||
return new String[] { "test" };
|
||||
}
|
||||
@@ -62,6 +64,7 @@ public final class Bug98508_Test extends ComplexTestCase {
|
||||
new Client().execute();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean run(XComponentContext context) throws Throwable {
|
||||
Test98508Interface ifc
|
||||
= UnoRuntime.queryInterface(
|
||||
@@ -83,6 +86,7 @@ public final class Bug98508_Test extends ComplexTestCase {
|
||||
|
||||
public Object getInstance(String instanceName) {
|
||||
return new Test98508Interface() {
|
||||
@Override
|
||||
public Test98508Struct get() {
|
||||
testBed.serverDone(true);
|
||||
return new Test98508Struct(Boolean.FALSE);
|
||||
|
@@ -36,6 +36,7 @@ import test.lib.TestBed;
|
||||
* short-cutting to the local object.</P>
|
||||
*/
|
||||
public final class MethodIdTest extends ComplexTestCase {
|
||||
@Override
|
||||
public String[] getTestMethodNames() {
|
||||
return new String[] { "test" };
|
||||
}
|
||||
@@ -51,6 +52,7 @@ public final class MethodIdTest extends ComplexTestCase {
|
||||
new Client().execute();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean run(XComponentContext context) throws Throwable {
|
||||
XTest t = UnoRuntime.queryInterface(
|
||||
XTest.class, getBridge(context).getInstance("Test"));
|
||||
|
@@ -27,6 +27,7 @@ import complexlib.ComplexTestCase;
|
||||
import test.lib.TestBed;
|
||||
|
||||
public final class PolyStructTest extends ComplexTestCase {
|
||||
@Override
|
||||
public String[] getTestMethodNames() {
|
||||
return new String[] { "test" };
|
||||
}
|
||||
@@ -42,6 +43,7 @@ public final class PolyStructTest extends ComplexTestCase {
|
||||
new Client().execute();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean run(XComponentContext context) throws Throwable {
|
||||
TestTransport t = UnoRuntime.queryInterface(
|
||||
TestTransport.class, getBridge(context).getInstance(""));
|
||||
|
@@ -35,6 +35,7 @@ import test.lib.TestBed;
|
||||
public final class StopMessageDispatcherTest extends ComplexTestCase {
|
||||
public StopMessageDispatcherTest() {}
|
||||
|
||||
@Override
|
||||
public String[] getTestMethodNames() {
|
||||
return new String[] { "test" };
|
||||
}
|
||||
@@ -50,6 +51,7 @@ public final class StopMessageDispatcherTest extends ComplexTestCase {
|
||||
new Client().execute();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean run(XComponentContext context) throws Throwable {
|
||||
XTest test = UnoRuntime.queryInterface(
|
||||
XTest.class, getBridge(context).getInstance("Test"));
|
||||
|
@@ -2095,6 +2095,7 @@ final class TestAny {
|
||||
this.unboxInner = unboxInner;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equal(Object o1, Object o2) {
|
||||
if (o1 instanceof Any) {
|
||||
return o2 instanceof Any
|
||||
@@ -2141,6 +2142,7 @@ final class TestAny {
|
||||
this.unboxInner = unboxInner;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equal(Object o1, Object o2) {
|
||||
return new CompareBoxed(unboxInner).equal(((Any) o1).getObject(),
|
||||
o2);
|
||||
@@ -2154,6 +2156,7 @@ final class TestAny {
|
||||
this.specific = specific;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equal(Object o1, Object o2) {
|
||||
return new CompareBoxed().equal(specific, o2);
|
||||
}
|
||||
@@ -2166,6 +2169,7 @@ final class TestAny {
|
||||
this.clazz = clazz;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equal(Object o1, Object o2) {
|
||||
return o2 != null && o2.getClass() == clazz;
|
||||
}
|
||||
@@ -2182,24 +2186,28 @@ final class TestAny {
|
||||
return new Enum1();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return obj != null && obj.getClass() == Enum1.class;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Enum2 extends Enum1 {
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return obj != null && obj.getClass() == Enum2.class;
|
||||
}
|
||||
}
|
||||
|
||||
public static class BaseStruct {
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return obj != null && obj.getClass() == BaseStruct.class;
|
||||
}
|
||||
}
|
||||
|
||||
public static class DerivedStruct extends BaseStruct {
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return obj != null && obj.getClass() == DerivedStruct.class;
|
||||
}
|
||||
@@ -2212,6 +2220,7 @@ final class TestAny {
|
||||
super(message);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return obj != null && obj.getClass() == BaseException.class;
|
||||
}
|
||||
@@ -2224,6 +2233,7 @@ final class TestAny {
|
||||
super(message);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return obj != null && obj.getClass() == DerivedException.class;
|
||||
}
|
||||
@@ -2238,6 +2248,7 @@ final class TestAny {
|
||||
super(message);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return obj != null
|
||||
&& obj.getClass() == BaseRuntimeException.class;
|
||||
@@ -2252,6 +2263,7 @@ final class TestAny {
|
||||
super(message);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return obj != null
|
||||
&& obj.getClass() == DerivedRuntimeException.class;
|
||||
|
@@ -39,6 +39,7 @@ public final class TestRemote {
|
||||
new Client().execute();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean run(XComponentContext context) throws Throwable {
|
||||
XTransport transport = UnoRuntime.queryInterface(
|
||||
XTransport.class, getBridge(context).getInstance("Transport"));
|
||||
|
@@ -79,6 +79,7 @@ public final class TestEquals {
|
||||
new Client().execute();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean run(XComponentContext context) throws Throwable {
|
||||
XTestFrame f = UnoRuntime.queryInterface(
|
||||
XTestFrame.class, getBridge(context).getInstance("TestFrame"));
|
||||
@@ -146,6 +147,7 @@ public final class TestEquals {
|
||||
final Object object2)
|
||||
{
|
||||
new Thread() {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
Object test1Aa = object1;
|
||||
|
@@ -58,6 +58,7 @@ public final class Relay implements XRelay, XSource {
|
||||
throw new WrappedTargetRuntimeException(e.toString(), this, e);
|
||||
}
|
||||
new Thread() {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
// Use "127.0.0.1" instead of "localhost", see #i32281#:
|
||||
|
@@ -84,6 +84,7 @@ public final class TestBed {
|
||||
private void pipe(final InputStream in, final PrintStream out,
|
||||
final String prefix) {
|
||||
new Thread("Pipe: " + prefix) {
|
||||
@Override
|
||||
public void run() {
|
||||
BufferedReader r
|
||||
= new BufferedReader(new InputStreamReader(in));
|
||||
@@ -151,6 +152,7 @@ public final class TestBed {
|
||||
this.provider = provider;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
XComponentContext context
|
||||
|
@@ -54,6 +54,7 @@ public class TestCaseOldAPI extends ComplexTestCase {
|
||||
* In this case it is the actual name of the service.
|
||||
* @return The tested service.
|
||||
*/
|
||||
@Override
|
||||
public String getTestObjectName() {
|
||||
return testedServiceName;
|
||||
}
|
||||
@@ -64,6 +65,7 @@ public class TestCaseOldAPI extends ComplexTestCase {
|
||||
* Return all test methods.
|
||||
* @return The test methods.
|
||||
*/
|
||||
@Override
|
||||
public String[] getTestMethodNames() {
|
||||
// For some tests a view needs to be created. Accessing the model via
|
||||
// this program and the view may lead to problems
|
||||
|
@@ -23,6 +23,7 @@ import complexlib.ComplexTestCase;
|
||||
|
||||
public class ClimakerTestCase extends ComplexTestCase
|
||||
{
|
||||
@Override
|
||||
public String[] getTestMethodNames()
|
||||
{
|
||||
// TODO think about trigger of sub-tests from outside
|
||||
@@ -75,6 +76,7 @@ class Reader extends Thread
|
||||
start();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
try
|
||||
|
@@ -34,26 +34,32 @@ public class NativeInputStreamHelper extends java.io.InputStream{
|
||||
in = new StorageNativeInputStream(key,file);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int read() throws java.io.IOException {
|
||||
return in.read(key,file);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int read(byte[] b, int off, int len) throws java.io.IOException {
|
||||
return in.read(key,file,b,off,len);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() throws java.io.IOException {
|
||||
in.close(key,file);
|
||||
}
|
||||
|
||||
@Override
|
||||
public long skip(long n) throws java.io.IOException {
|
||||
return in.skip(key,file,n);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int available() throws java.io.IOException {
|
||||
return in.available(key,file);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int read(byte[] b) throws java.io.IOException {
|
||||
return in.read(key,file,b);
|
||||
}
|
||||
|
@@ -36,22 +36,27 @@ public class NativeOutputStreamHelper extends java.io.OutputStream{
|
||||
out = new StorageNativeOutputStream(file,key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(byte[] b, int off, int len) throws java.io.IOException{
|
||||
out.write(key,file,b, off, len);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(byte[] b) throws java.io.IOException{
|
||||
out.write(key,file,b);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() throws java.io.IOException{
|
||||
out.close(key,file);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(int b) throws java.io.IOException{
|
||||
out.write(key,file,b);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void flush() throws java.io.IOException{
|
||||
out.flush(key,file);
|
||||
}
|
||||
|
@@ -27,6 +27,7 @@ import share.LogWriter;
|
||||
|
||||
public class DBaseDriverTest extends ComplexTestCase implements TestCase
|
||||
{
|
||||
@Override
|
||||
public String[] getTestMethodNames()
|
||||
{
|
||||
return new String[]
|
||||
|
@@ -38,6 +38,7 @@ import connectivity.tools.HsqlDatabase;
|
||||
public class HsqlDriverTest extends ComplexTestCase {
|
||||
|
||||
|
||||
@Override
|
||||
public String[] getTestMethodNames() {
|
||||
return new String[] { "test" };
|
||||
}
|
||||
|
@@ -35,6 +35,7 @@ import complexlib.ComplexTestCase;
|
||||
public class JdbcLongVarCharTest extends ComplexTestCase
|
||||
{
|
||||
|
||||
@Override
|
||||
public String[] getTestMethodNames()
|
||||
{
|
||||
return new String[]
|
||||
|
@@ -246,6 +246,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document.
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
@Before
|
||||
public void before() throws java.lang.Exception
|
||||
{
|
||||
@@ -274,6 +275,7 @@ public class DatabaseDocument extends TestCase implements com.sun.star.document.
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
@After
|
||||
public void after() throws java.lang.Exception
|
||||
{
|
||||
|
@@ -44,6 +44,7 @@ public class ConsoleWait implements com.sun.star.lang.XEventListener
|
||||
return m_done;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
try
|
||||
|
@@ -42,6 +42,7 @@ public class ObjectInspector extends complexlib.ComplexTestCase
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public String[] getTestMethodNames()
|
||||
{
|
||||
return new String[] {
|
||||
@@ -50,6 +51,7 @@ public class ObjectInspector extends complexlib.ComplexTestCase
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public String getTestObjectName()
|
||||
{
|
||||
return "Test Skeleton";
|
||||
|
@@ -30,6 +30,7 @@ public class TestSkeleton extends complexlib.ComplexTestCase
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public String[] getTestMethodNames()
|
||||
{
|
||||
return new String[] {
|
||||
@@ -38,6 +39,7 @@ public class TestSkeleton extends complexlib.ComplexTestCase
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public String getTestObjectName()
|
||||
{
|
||||
return "Test Skeleton";
|
||||
|
@@ -186,6 +186,7 @@ public class TypeDetection extends ComplexTestCase {
|
||||
* A function to tell the framework, which test functions are available.
|
||||
* @return All test methods.
|
||||
*/
|
||||
@Override
|
||||
public String[] getTestMethodNames() {
|
||||
return new String[]{"checkByURLonly",
|
||||
"checkPreselectedType",
|
||||
|
@@ -51,6 +51,7 @@ public class CellBinding extends complexlib.ComplexTestCase
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getTestMethodNames()
|
||||
{
|
||||
return new String[] {
|
||||
@@ -64,6 +65,7 @@ public class CellBinding extends complexlib.ComplexTestCase
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTestObjectName()
|
||||
{
|
||||
return "Form Control Spreadsheet Cell Binding Test";
|
||||
|
@@ -39,6 +39,7 @@ public class ControlValidation extends complexlib.ComplexTestCase implements com
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getTestMethodNames()
|
||||
{
|
||||
return new String[] {
|
||||
@@ -46,6 +47,7 @@ public class ControlValidation extends complexlib.ComplexTestCase implements com
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTestObjectName()
|
||||
{
|
||||
return "Form Control Validation Test";
|
||||
|
@@ -61,6 +61,7 @@ public class FormControlTest extends complexlib.ComplexTestCase implements XSQLE
|
||||
private final String m_dataSourceName = "integration.forms.FormControlTest";
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public String[] getTestMethodNames()
|
||||
{
|
||||
return new String[] {
|
||||
@@ -75,6 +76,7 @@ public class FormControlTest extends complexlib.ComplexTestCase implements XSQLE
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public String getTestObjectName()
|
||||
{
|
||||
return "Database Form Controls Test";
|
||||
|
@@ -50,6 +50,7 @@ public class FormPropertyBags extends complexlib.ComplexTestCase implements XPro
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public String[] getTestMethodNames()
|
||||
{
|
||||
return new String[] {
|
||||
@@ -58,6 +59,7 @@ public class FormPropertyBags extends complexlib.ComplexTestCase implements XPro
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public String getTestObjectName()
|
||||
{
|
||||
return "Form Component Property Bag Test";
|
||||
|
@@ -52,6 +52,7 @@ public class ListBox extends TestCase
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public String[] getTestMethodNames()
|
||||
{
|
||||
return new String[] {
|
||||
@@ -112,6 +113,7 @@ public class ListBox extends TestCase
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public void before() throws Exception, java.lang.Exception
|
||||
{
|
||||
super.before();
|
||||
@@ -119,6 +121,7 @@ public class ListBox extends TestCase
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
protected void prepareDocument() throws com.sun.star.uno.Exception, java.lang.Exception
|
||||
{
|
||||
super.prepareDocument();
|
||||
|
@@ -45,6 +45,7 @@ public class ListSelection extends integration.forms.TestCase
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public String[] getTestMethodNames()
|
||||
{
|
||||
return new String[] {
|
||||
@@ -53,6 +54,7 @@ public class ListSelection extends integration.forms.TestCase
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public String getTestObjectName()
|
||||
{
|
||||
return "Form Control List Selection Test";
|
||||
@@ -213,6 +215,7 @@ public class ListSelection extends integration.forms.TestCase
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
protected void prepareDocument() throws com.sun.star.uno.Exception, java.lang.Exception
|
||||
{
|
||||
super.prepareDocument();
|
||||
|
@@ -65,6 +65,7 @@ public class MasterDetailForms extends complexlib.ComplexTestCase implements com
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public String[] getTestMethodNames()
|
||||
{
|
||||
return new String[] {
|
||||
@@ -80,6 +81,7 @@ public class MasterDetailForms extends complexlib.ComplexTestCase implements com
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public String getTestObjectName()
|
||||
{
|
||||
return "Form Control Spreadsheet Cell Binding Test";
|
||||
|
@@ -42,6 +42,7 @@ public class RadioButtons extends complexlib.ComplexTestCase
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public String[] getTestMethodNames()
|
||||
{
|
||||
return new String[] {
|
||||
@@ -53,6 +54,7 @@ public class RadioButtons extends complexlib.ComplexTestCase
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public String getTestObjectName()
|
||||
{
|
||||
return "Form Radio Buttons Test";
|
||||
|
@@ -130,6 +130,7 @@ public class TableCellTextBinding
|
||||
|
||||
/** runs the thread
|
||||
*/
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
try
|
||||
|
@@ -36,6 +36,7 @@ public abstract class TestCase extends complexlib.ComplexTestCase implements com
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public String getTestObjectName()
|
||||
{
|
||||
return this.getClass().getName();
|
||||
|
@@ -28,6 +28,7 @@ public class TestSkeleton extends TestCase
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public String[] getTestMethodNames()
|
||||
{
|
||||
return new String[] {
|
||||
@@ -36,6 +37,7 @@ public class TestSkeleton extends TestCase
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public String getTestObjectName()
|
||||
{
|
||||
return "Test Skeleton";
|
||||
@@ -47,18 +49,21 @@ public class TestSkeleton extends TestCase
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public void before() throws Exception, java.lang.Exception
|
||||
{
|
||||
super.before();
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public void after() throws Exception, java.lang.Exception
|
||||
{
|
||||
super.before();
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
protected void prepareDocument() throws com.sun.star.uno.Exception, java.lang.Exception
|
||||
{
|
||||
super.prepareDocument();
|
||||
|
@@ -43,6 +43,7 @@ public class ValueBinding extends integration.forms.TestCase
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public String[] getTestMethodNames()
|
||||
{
|
||||
return new String[] {
|
||||
@@ -51,12 +52,14 @@ public class ValueBinding extends integration.forms.TestCase
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public String getTestObjectName()
|
||||
{
|
||||
return "Form Control Value Binding Test";
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public void before() throws com.sun.star.uno.Exception, java.lang.Exception
|
||||
{
|
||||
super.before();
|
||||
@@ -64,6 +67,7 @@ public class ValueBinding extends integration.forms.TestCase
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public void after() throws com.sun.star.uno.Exception, java.lang.Exception
|
||||
{
|
||||
super.waitForUserInput();
|
||||
@@ -76,6 +80,7 @@ public class ValueBinding extends integration.forms.TestCase
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
protected void prepareDocument() throws com.sun.star.uno.Exception, java.lang.Exception
|
||||
{
|
||||
super.prepareDocument();
|
||||
|
@@ -33,6 +33,7 @@ class WaitForInput extends java.lang.Thread
|
||||
return m_bDone;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
try
|
||||
|
@@ -52,6 +52,7 @@ public class XMLFormSettings extends complexlib.ComplexTestCase
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public String[] getTestMethodNames()
|
||||
{
|
||||
return new String[] {
|
||||
@@ -60,6 +61,7 @@ public class XMLFormSettings extends complexlib.ComplexTestCase
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public String getTestObjectName()
|
||||
{
|
||||
return "Form Control Spreadsheet Cell Binding Test";
|
||||
|
@@ -461,6 +461,7 @@ public class EventTest {
|
||||
* </LI>
|
||||
* </UL>
|
||||
*/
|
||||
@Override
|
||||
public void run(){
|
||||
|
||||
switch (this.eventType){
|
||||
|
@@ -361,6 +361,7 @@ public class AutoSave
|
||||
DocThread()
|
||||
{}
|
||||
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
impl_checkConcurrentAutoSaveToNormalUISave();
|
||||
|
@@ -183,6 +183,7 @@ public class Protocol extends JComponent
|
||||
}
|
||||
|
||||
/** format this line as an ascii string for writing log files */
|
||||
@Override
|
||||
public synchronized String toString()
|
||||
{
|
||||
StringBuffer sLine = new StringBuffer(1000);
|
||||
|
@@ -41,6 +41,7 @@ public class CrashThread extends Thread {
|
||||
this.msf = msf;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
try{
|
||||
XModel xModel = UnoRuntime.queryInterface(XModel.class, xDoc);
|
||||
|
@@ -37,6 +37,7 @@ public class KlickButtonThread extends Thread {
|
||||
this.buttonName = buttonName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
try{
|
||||
UITools oUITools = new UITools(xMSF, xWindow);
|
||||
|
@@ -83,6 +83,7 @@ public class RecoveryTest extends ComplexTestCase {
|
||||
* @todo: after a second start after the crash there should no documents recovered anymore
|
||||
* @todo: enable remove of recovery files
|
||||
*/
|
||||
@Override
|
||||
public String[] getTestMethodNames() {
|
||||
return new String[]{"testCrash"};
|
||||
}
|
||||
|
@@ -25,6 +25,7 @@ public class TimeoutThread extends Thread{
|
||||
this.timeOut = timeOut;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run(){
|
||||
util.utils.shortWait(timeOut);
|
||||
}
|
||||
|
@@ -330,6 +330,7 @@ public class Bootstrap {
|
||||
final InputStream in, final PrintStream out, final String prefix ) {
|
||||
|
||||
new Thread( "Pipe: " + prefix) {
|
||||
@Override
|
||||
public void run() {
|
||||
BufferedReader r = new BufferedReader(
|
||||
new InputStreamReader( in ) );
|
||||
|
@@ -45,6 +45,7 @@ public class XInputStreamToInputStreamAdapter extends InputStream {
|
||||
xin = in;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int available() throws IOException {
|
||||
|
||||
int bytesAvail;
|
||||
@@ -58,6 +59,7 @@ public class XInputStreamToInputStreamAdapter extends InputStream {
|
||||
return(bytesAvail);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
try {
|
||||
xin.closeInput();
|
||||
@@ -66,6 +68,7 @@ public class XInputStreamToInputStreamAdapter extends InputStream {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int read () throws IOException {
|
||||
byte [][] tmp = new byte [1][1];
|
||||
try {
|
||||
@@ -86,6 +89,7 @@ public class XInputStreamToInputStreamAdapter extends InputStream {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int read (byte[] b) throws IOException {
|
||||
|
||||
byte [][] tmp = new byte [1][b.length];
|
||||
@@ -107,6 +111,7 @@ public class XInputStreamToInputStreamAdapter extends InputStream {
|
||||
return (bytesRead);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int read(byte[] b, int off, int len) throws IOException {
|
||||
byte [][] tmp = new byte [1][b.length];
|
||||
try {
|
||||
@@ -138,6 +143,7 @@ public class XInputStreamToInputStreamAdapter extends InputStream {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public long skip(long n) throws IOException {
|
||||
|
||||
int avail;
|
||||
@@ -180,14 +186,17 @@ public class XInputStreamToInputStreamAdapter extends InputStream {
|
||||
*
|
||||
* @returns false
|
||||
*/
|
||||
@Override
|
||||
public boolean markSupported() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void mark(int readlimit) {
|
||||
// Not supported.
|
||||
}
|
||||
|
||||
@Override
|
||||
public void reset() throws IOException {
|
||||
// Not supported.
|
||||
}
|
||||
|
@@ -46,6 +46,7 @@ public class XOutputStreamToOutputStreamAdapter extends OutputStream {
|
||||
xout = out;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
try {
|
||||
xout.closeOutput();
|
||||
@@ -54,6 +55,7 @@ public class XOutputStreamToOutputStreamAdapter extends OutputStream {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void flush() throws IOException {
|
||||
try {
|
||||
xout.flush();
|
||||
@@ -62,6 +64,7 @@ public class XOutputStreamToOutputStreamAdapter extends OutputStream {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(byte[] b) throws IOException {
|
||||
|
||||
try {
|
||||
@@ -71,6 +74,7 @@ public class XOutputStreamToOutputStreamAdapter extends OutputStream {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(byte[] b, int off, int len) throws IOException {
|
||||
|
||||
byte[] tmp = new byte[len];
|
||||
@@ -86,6 +90,7 @@ public class XOutputStreamToOutputStreamAdapter extends OutputStream {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(int b) throws IOException {
|
||||
|
||||
byte [] oneByte = new byte [1];
|
||||
|
@@ -123,6 +123,7 @@ public class ComponentBase extends WeakBase implements XComponent
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void finalize() throws Throwable
|
||||
{
|
||||
if ( ! bInDispose && ! bDisposed)
|
||||
|
@@ -440,6 +440,7 @@ public class InterfaceContainer implements Cloneable
|
||||
*
|
||||
* @return a clone of this <tt>List</tt> instance.
|
||||
*/
|
||||
@Override
|
||||
synchronized public Object clone()
|
||||
{
|
||||
Object ret= null;
|
||||
|
@@ -297,6 +297,7 @@ XMultiPropertySet
|
||||
/** Makes sure that listeners which are kept in aBoundLC (XPropertyChangeListener) and aVetoableLC
|
||||
* (XVetoableChangeListener) receive a disposing call. Also those listeners are relesased.
|
||||
*/
|
||||
@Override
|
||||
protected void postDisposing()
|
||||
{
|
||||
// Create an event with this as sender
|
||||
|
@@ -53,6 +53,7 @@ public class WeakBase implements XWeak, XTypeProvider
|
||||
* then the garbage collector calls this method. Thereby causing the adapter object
|
||||
* to be notified. The adapter, in turn, notifies all listeners (com.sun.star.uno.XReference)
|
||||
*/
|
||||
@Override
|
||||
protected void finalize() throws java.lang.Throwable
|
||||
{
|
||||
if (m_adapter != null)
|
||||
|
@@ -124,6 +124,7 @@ final class ProxyFactory {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void finalize() {
|
||||
AsynchronousFinalizer.add(new AsynchronousFinalizer.Job() {
|
||||
public void run() throws Throwable {
|
||||
|
@@ -39,6 +39,7 @@ class XConnectionInputStream_Adapter extends InputStream {
|
||||
_xConnection = xConnection;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int read() throws IOException {
|
||||
int len;
|
||||
|
||||
|
@@ -37,6 +37,7 @@ class XConnectionOutputStream_Adapter extends OutputStream {
|
||||
_xConnection = xConnection;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(int b) throws IOException {
|
||||
_bytes[0] = (byte)b;
|
||||
|
||||
|
@@ -85,6 +85,7 @@ public class java_remote_bridge
|
||||
super("MessageDispatcher");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
for (;;) {
|
||||
|
@@ -153,6 +153,7 @@ public final class java_environment implements IEnvironment {
|
||||
// bridges forbids to transparently share proxies between bridges, and using
|
||||
// different java_environment instances for different bridges is the way to
|
||||
// enforce this.
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return false;
|
||||
}
|
||||
|
@@ -78,6 +78,7 @@ public class JobQueue {
|
||||
return _threadId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
if(DEBUG) System.err.println("ThreadPool$JobDispatcher.run: " + Thread.currentThread());
|
||||
|
||||
|
@@ -69,6 +69,7 @@ public final class AsynchronousFinalizer {
|
||||
|
||||
static {
|
||||
Thread t = new Thread() {
|
||||
@Override
|
||||
public void run() {
|
||||
for (;;) {
|
||||
Job j;
|
||||
|
@@ -52,6 +52,7 @@ public final class PipedConnection_Test {
|
||||
_pipedConnection = pipedConnection;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
for (byte v = 0;; v++) {
|
||||
@@ -81,6 +82,7 @@ public final class PipedConnection_Test {
|
||||
_pipedConnection = pipedConnection;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
byte v = 0;
|
||||
|
@@ -27,6 +27,7 @@ public final class JavaThreadPoolFactory_Test {
|
||||
assertEquals(i1, JavaThreadPoolFactory.getThreadId());
|
||||
final ThreadId[] i2 = new ThreadId[1];
|
||||
new Thread() {
|
||||
@Override
|
||||
public void run() {
|
||||
synchronized (i2) {
|
||||
i2[0] = JavaThreadPoolFactory.getThreadId();
|
||||
|
@@ -206,6 +206,7 @@ public final class JobQueue_Test {
|
||||
waitTime = 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
synchronized (lock) {
|
||||
state = STATE_STARTED;
|
||||
|
@@ -233,6 +233,7 @@ public class ThreadPool_Test {
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
for (int i = 0; i < count; ++i) {
|
||||
@@ -249,6 +250,7 @@ public class ThreadPool_Test {
|
||||
}
|
||||
|
||||
Stress stress1 = new Stress(50) {
|
||||
@Override
|
||||
protected void runTest() throws InterruptedException {
|
||||
testThreadAsync();
|
||||
}
|
||||
@@ -256,6 +258,7 @@ public class ThreadPool_Test {
|
||||
stress1.start();
|
||||
|
||||
Stress stress2 = new Stress(50) {
|
||||
@Override
|
||||
protected void runTest() throws InterruptedException {
|
||||
testDynamicThreadSync();
|
||||
}
|
||||
@@ -263,6 +266,7 @@ public class ThreadPool_Test {
|
||||
stress2.start();
|
||||
|
||||
Stress stress3 = new Stress(50) {
|
||||
@Override
|
||||
protected void runTest() throws InterruptedException {
|
||||
testStaticThreadSync();
|
||||
}
|
||||
@@ -270,6 +274,7 @@ public class ThreadPool_Test {
|
||||
stress3.start();
|
||||
|
||||
Stress stress4 = new Stress(50) {
|
||||
@Override
|
||||
protected void runTest() throws InterruptedException {
|
||||
testDynamicThreadAsyncSyncOrder();
|
||||
}
|
||||
@@ -277,6 +282,7 @@ public class ThreadPool_Test {
|
||||
stress4.start();
|
||||
|
||||
Stress stress5 = new Stress(50) {
|
||||
@Override
|
||||
protected void runTest() throws InterruptedException {
|
||||
testStaticThreadAsyncSyncOrder();
|
||||
}
|
||||
@@ -284,6 +290,7 @@ public class ThreadPool_Test {
|
||||
stress5.start();
|
||||
|
||||
Stress stress6 = new Stress(500) {
|
||||
@Override
|
||||
protected void runTest() throws InterruptedException {
|
||||
testDispose();
|
||||
}
|
||||
@@ -348,6 +355,7 @@ public class ThreadPool_Test {
|
||||
_iThreadPool = iThreadPool;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
_threadId = _iThreadPool.getThreadId();
|
||||
|
||||
|
@@ -255,6 +255,7 @@ public final class Protocol_Test {
|
||||
{
|
||||
protocol = new urp(bridge, null, input, output);
|
||||
new Thread() {
|
||||
@Override
|
||||
public void run() {
|
||||
for (;;) {
|
||||
Object o;
|
||||
|
@@ -39,6 +39,7 @@ public final class NativeLibraryLoader_Test {
|
||||
|
||||
File file2 = NativeLibraryLoader.getResource(
|
||||
new ClassLoader() {
|
||||
@Override
|
||||
public URL getResource(String name) {
|
||||
return url;
|
||||
}
|
||||
@@ -61,6 +62,7 @@ public final class NativeLibraryLoader_Test {
|
||||
|
||||
File file2 = NativeLibraryLoader.getResource(
|
||||
new ClassLoader() {
|
||||
@Override
|
||||
public URL getResource(String name) {
|
||||
return url;
|
||||
}
|
||||
|
@@ -43,6 +43,7 @@ public final class WeakReference_Test {
|
||||
return adapter;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void finalize() {
|
||||
adapter.dispose();
|
||||
}
|
||||
|
@@ -3,8 +3,13 @@
|
||||
|
||||
#Supported parameters:
|
||||
NAME VALUE_type Range DefaultV Description
|
||||
<<<<<<< HEAD
|
||||
FACTOR real (0, 1.2] 0.5 DEAgent: scale constant
|
||||
CR real [0, 1] 0.9 DEAgent: crossover constant
|
||||
=======
|
||||
FACTOR real (0, 1.2] 0.5 DEAgent: scale constant
|
||||
CR real [0, 1] 0.9 DEAgent: crossover constant
|
||||
>>>>>>> java: add @Override annotation to overriding methods
|
||||
//Other choices for FACTOR and CR: (0.5, 0.1)
|
||||
|
||||
*
|
||||
@@ -46,6 +51,7 @@ public class DEGTBehavior extends AbsGTBehavior implements ILibEngine {
|
||||
pbest_t = pbest;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void generateBehavior(SearchPoint trailPoint, ProblemEncoder problemEncoder) {
|
||||
SearchPoint gbest_t = socialLib.getGbest();
|
||||
|
||||
@@ -66,6 +72,7 @@ public class DEGTBehavior extends AbsGTBehavior implements ILibEngine {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void testBehavior(SearchPoint trailPoint, IGoodnessCompareEngine qualityComparator) {
|
||||
Library.replace(qualityComparator, trailPoint, pbest_t);
|
||||
}
|
||||
|
@@ -83,6 +83,7 @@ public class PSGTBehavior extends AbsGTBehavior {
|
||||
pold_t = pold;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void generateBehavior(SearchPoint trailPoint, ProblemEncoder problemEncoder) {
|
||||
SearchPoint gbest_t = socialLib.getGbest();
|
||||
DesignSpace designSpace = problemEncoder.getDesignSpace();
|
||||
@@ -107,6 +108,7 @@ public class PSGTBehavior extends AbsGTBehavior {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void testBehavior(SearchPoint trailPoint, IGoodnessCompareEngine qualityComparator) {
|
||||
Library.replace(qualityComparator, trailPoint, pbest_t);
|
||||
pold_t.importLocation(pcurrent_t);
|
||||
|
@@ -32,6 +32,7 @@ public abstract class UnconstrainedProblemEncoder extends ProblemEncoder {
|
||||
setDefaultYAt(0, BasicBound.MINDOUBLE, BasicBound.MINDOUBLE);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected double calcTargetAt(int index, double[] VX) {
|
||||
return calcTarget(VX);
|
||||
}
|
||||
|
@@ -183,6 +183,7 @@ public class SelectionChangeListener implements XSelectionChangeListener {
|
||||
mMCF = xMCF;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
XDesktop aDesktop = null;
|
||||
XInterface aToolKit = null;
|
||||
|
@@ -314,7 +314,8 @@ public class AsyncJob extends WeakBase implements XServiceInfo, XAsyncJob
|
||||
};
|
||||
|
||||
new Thread( doRun ) {
|
||||
public void run() { javax.swing.SwingUtilities.invokeLater(doRun); }
|
||||
@Override
|
||||
public void run() { javax.swing.SwingUtilities.invokeLater(doRun); }
|
||||
}.start();
|
||||
}
|
||||
|
||||
|
@@ -363,6 +363,7 @@ public class ConfigExamples
|
||||
public int subdivision_x;
|
||||
public int subdivision_y;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuffer aBuffer = new StringBuffer();
|
||||
aBuffer.append("[ Grid is "); aBuffer.append(visible ? "VISIBLE" : "HIDDEN");
|
||||
|
@@ -60,6 +60,7 @@ class LockControlModels extends ComponentTreeTraversal
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
protected boolean shouldStepInto( XIndexContainer xContainer ) throws com.sun.star.uno.Exception
|
||||
{
|
||||
if ( !super.shouldStepInto( xContainer ) )
|
||||
@@ -75,6 +76,7 @@ class LockControlModels extends ComponentTreeTraversal
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public void handle( Object aFormComponent ) throws com.sun.star.uno.Exception
|
||||
{
|
||||
// entering this nesting level
|
||||
|
@@ -29,6 +29,7 @@ public class ControlValidation extends DocumentBasedExample
|
||||
/* ------------------------------------------------------------------ */
|
||||
/* public test methods */
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
protected void prepareDocument() throws com.sun.star.uno.Exception, java.lang.Exception
|
||||
{
|
||||
super.prepareDocument();
|
||||
|
@@ -73,6 +73,7 @@ class PrintComponentTree extends ComponentTreeTraversal
|
||||
m_sPrefix = new String();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handle( Object aFormComponent ) throws com.sun.star.uno.Exception
|
||||
{
|
||||
// the name of the child
|
||||
@@ -117,6 +118,7 @@ class RevokeButtons extends ComponentTreeTraversal
|
||||
m_aOperator = aOperator;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handle( Object aFormComponent ) throws com.sun.star.uno.Exception
|
||||
{
|
||||
// check if it's a button
|
||||
@@ -343,6 +345,7 @@ public class DataAwareness extends DocumentBasedExample implements XPropertyChan
|
||||
/* ------------------------------------------------------------------ */
|
||||
// XEventListener overridables
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
public void disposing( EventObject aEvent )
|
||||
{
|
||||
// simply disambiguate
|
||||
@@ -681,6 +684,7 @@ public class DataAwareness extends DocumentBasedExample implements XPropertyChan
|
||||
/* ------------------------------------------------------------------ */
|
||||
/** creates our sample document
|
||||
*/
|
||||
@Override
|
||||
protected void prepareDocument() throws com.sun.star.uno.Exception, java.lang.Exception
|
||||
{
|
||||
super.prepareDocument();
|
||||
@@ -887,6 +891,7 @@ public class DataAwareness extends DocumentBasedExample implements XPropertyChan
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
protected void onFormsAlive()
|
||||
{
|
||||
m_aOperator.onFormsAlive();
|
||||
@@ -895,6 +900,7 @@ public class DataAwareness extends DocumentBasedExample implements XPropertyChan
|
||||
/* ------------------------------------------------------------------ */
|
||||
/** performs any cleanup before exiting the program
|
||||
*/
|
||||
@Override
|
||||
protected void cleanUp( ) throws java.lang.Exception
|
||||
{
|
||||
// remove the listeners at the buttons
|
||||
|
@@ -219,6 +219,7 @@ public class HsqlDatabase
|
||||
return new RowSet( m_context, getDocumentURL(), _commandType, _command );
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void finalize() throws Throwable
|
||||
{
|
||||
closeAndDelete();
|
||||
|
@@ -35,6 +35,7 @@ public class SpreadsheetValueBinding extends DocumentBasedExample
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
protected void prepareDocument() throws com.sun.star.uno.Exception, java.lang.Exception
|
||||
{
|
||||
super.prepareDocument();
|
||||
|
@@ -127,6 +127,7 @@ public class TableCellTextBinding
|
||||
|
||||
/** runs the thread
|
||||
*/
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
try
|
||||
|
@@ -35,6 +35,7 @@ public class ValueBinding extends DocumentBasedExample
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
@Override
|
||||
protected void prepareDocument() throws com.sun.star.uno.Exception, java.lang.Exception
|
||||
{
|
||||
super.prepareDocument();
|
||||
|
@@ -31,6 +31,7 @@ class WaitForInput extends java.lang.Thread
|
||||
return m_bDone;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
try
|
||||
|
@@ -85,13 +85,16 @@ public UnoMenu2(XComponentContext _xContext, XMultiComponentFactory _xMCF) {
|
||||
e.printStackTrace();
|
||||
}}
|
||||
|
||||
@Override
|
||||
protected void closeDialog(){
|
||||
xDialog.endExecute();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void mouseReleased(MouseEvent mouseEvent) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void mousePressed(MouseEvent mouseEvent) {
|
||||
if (mouseEvent.PopupTrigger){
|
||||
Rectangle aPos = new Rectangle(mouseEvent.X, mouseEvent.Y, 0, 0);
|
||||
@@ -100,12 +103,15 @@ public UnoMenu2(XComponentContext _xContext, XMultiComponentFactory _xMCF) {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void mouseExited(MouseEvent mouseEvent) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void mouseEntered(MouseEvent mouseEvent) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void disposing(EventObject eventObject) {
|
||||
}
|
||||
}
|
||||
|
@@ -300,6 +300,7 @@ public class DocumentView extends JFrame
|
||||
/**
|
||||
* Overridden so we can react for window closing of this view.
|
||||
*/
|
||||
@Override
|
||||
protected void processWindowEvent(WindowEvent aEvent)
|
||||
{
|
||||
if (aEvent.getID()!=WindowEvent.WINDOW_CLOSING)
|
||||
|
@@ -79,6 +79,7 @@ public class NativeView extends java.awt.Canvas
|
||||
* can be called more than ones - but call native code one times only
|
||||
* and safe the handle and the system type on our members maHandle/maSystem!
|
||||
*/
|
||||
@Override
|
||||
public void setVisible(boolean bState)
|
||||
{
|
||||
getHWND();
|
||||
@@ -91,16 +92,19 @@ public class NativeView extends java.awt.Canvas
|
||||
* (e.g. JSplitPane) we must provide some information about our
|
||||
* preferred/minimum and maximum size.
|
||||
*/
|
||||
@Override
|
||||
public Dimension getPreferredSize()
|
||||
{
|
||||
return new Dimension(500,300);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Dimension getMaximumSize()
|
||||
{
|
||||
return new Dimension(1024,768);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Dimension getMinimumSize()
|
||||
{
|
||||
return new Dimension(100,100);
|
||||
@@ -116,6 +120,7 @@ public class NativeView extends java.awt.Canvas
|
||||
* May the remote window is already plugged. In such case we
|
||||
* shouldn't paint it over.
|
||||
*/
|
||||
@Override
|
||||
public void paint(Graphics aGraphic)
|
||||
{
|
||||
if(maHandle==null)
|
||||
|
@@ -122,6 +122,7 @@ class OnewayExecutor extends Thread
|
||||
* give him all necessary parameters.
|
||||
* After that we die by ourselves ...
|
||||
*/
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
if (m_rLink==null)
|
||||
|
@@ -190,6 +190,7 @@ public class ViewContainer extends Thread
|
||||
* on shutdown. We inform all current registered listener and
|
||||
* views. They should deinitialize her internal things then.
|
||||
*/
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
synchronized(this)
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user