Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Tiede2014-11-21 08:08:45 +0000
committerMarkus Tiede2014-11-21 08:08:45 +0000
commit871f81b1bb03375fb3ec922bf18343af9f94906f (patch)
tree18e5a5a50a1a0a61cc2437014db267192a4b78b7 /org.eclipse.jubula.client.api
parentd0c47414c6eed45e5742981eb8b9c26ee3479e6b (diff)
downloadorg.eclipse.jubula.core-871f81b1bb03375fb3ec922bf18343af9f94906f.tar.gz
org.eclipse.jubula.core-871f81b1bb03375fb3ec922bf18343af9f94906f.tar.xz
org.eclipse.jubula.core-871f81b1bb03375fb3ec922bf18343af9f94906f.zip
Non-sprint task - switched to package wide @NonNullByDefault annotation usage for o.e.j.client.api.
Diffstat (limited to 'org.eclipse.jubula.client.api')
-rw-r--r--org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/AUT.java7
-rw-r--r--org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/AUTAgent.java9
-rw-r--r--org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/MakeR.java8
-rw-r--r--org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/ObjectMapping.java3
-rw-r--r--org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/Result.java2
-rw-r--r--org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/ActionException.java3
-rw-r--r--org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/CheckFailedException.java10
-rw-r--r--org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/ComponentNotFoundException.java4
-rw-r--r--org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/ConfigurationException.java4
-rw-r--r--org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/ExecutionException.java8
-rw-r--r--org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/ExecutionExceptionHandler.java4
-rw-r--r--org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/LoadResourceException.java7
-rw-r--r--org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/package-info.java12
-rw-r--r--org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/package-info.java12
14 files changed, 45 insertions, 48 deletions
diff --git a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/AUT.java b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/AUT.java
index 3bd6638f3..bc329168f 100644
--- a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/AUT.java
+++ b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/AUT.java
@@ -10,11 +10,10 @@
*******************************************************************************/
package org.eclipse.jubula.client;
-import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;
import org.eclipse.jubula.client.exceptions.CommunicationException;
-import org.eclipse.jubula.client.exceptions.ExecutionExceptionHandler;
import org.eclipse.jubula.client.exceptions.ExecutionException;
+import org.eclipse.jubula.client.exceptions.ExecutionExceptionHandler;
import org.eclipse.jubula.communication.CAP;
import org.eclipse.jubula.tools.AUTIdentifier;
@@ -27,7 +26,6 @@ public interface AUT extends Remote {
/**
* @return the AUTIdentifier of this AUT
*/
- @NonNull
AUTIdentifier getIdentifier();
/**
@@ -44,8 +42,7 @@ public interface AUT extends Remote {
* @throws CommunicationException
* in case of communication problems with the remote side
*/
- @NonNull
- <T> Result<T> execute(@NonNull CAP cap, @Nullable T payload)
+ <T> Result<T> execute(CAP cap, @Nullable T payload)
throws ExecutionException, CommunicationException;
/**
diff --git a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/AUTAgent.java b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/AUTAgent.java
index 4bf3e9f4f..8489fa1ba 100644
--- a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/AUTAgent.java
+++ b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/AUTAgent.java
@@ -12,7 +12,6 @@ package org.eclipse.jubula.client;
import java.util.List;
-import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;
import org.eclipse.jubula.client.exceptions.CommunicationException;
import org.eclipse.jubula.client.launch.AUTConfiguration;
@@ -35,7 +34,7 @@ public interface AUTAgent extends Remote {
* in case of communication problems with the remote side
*/
@Nullable
- AUTIdentifier startAUT(@NonNull AUTConfiguration configuration)
+ AUTIdentifier startAUT(AUTConfiguration configuration)
throws CommunicationException;
/**
@@ -46,14 +45,13 @@ public interface AUTAgent extends Remote {
* @throws CommunicationException
* in case of communication problems with the remote side
*/
- void stopAUT(@NonNull AUTIdentifier aut) throws CommunicationException;
+ void stopAUT(AUTIdentifier aut) throws CommunicationException;
/**
* @return an unmodifiable list of currently known / registered AUT IDs
* @throws CommunicationException
* in case of communication problems with the remote side
*/
- @NonNull
List<AUTIdentifier> getAllRegisteredAUTIdentifier()
throws CommunicationException;
@@ -68,7 +66,6 @@ public interface AUTAgent extends Remote {
* @throws CommunicationException
* in case of communication problems with the remote side
*/
- @NonNull
- AUT getAUT(@NonNull AUTIdentifier autID, @NonNull ToolkitInfo information)
+ AUT getAUT(AUTIdentifier autID, ToolkitInfo information)
throws CommunicationException;
} \ No newline at end of file
diff --git a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/MakeR.java b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/MakeR.java
index 13cf363a5..b26d11277 100644
--- a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/MakeR.java
+++ b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/MakeR.java
@@ -12,7 +12,6 @@ package org.eclipse.jubula.client;
import java.io.InputStream;
-import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jubula.client.internal.impl.AUTAgentImpl;
import org.eclipse.jubula.client.internal.impl.ObjectMappingImpl;
@@ -37,8 +36,7 @@ public final class MakeR {
* remote running AUT-Agent; multiple connections may only be
* established sequentially!
*/
- @NonNull
- public static AUTAgent createAUTAgent(@NonNull String hostname, int port) {
+ public static AUTAgent createAUTAgent(String hostname, int port) {
return new AUTAgentImpl(hostname, port);
}
@@ -48,9 +46,7 @@ public final class MakeR {
* an input stream providing the exported object mapping
* properties
*/
- @NonNull
- public static ObjectMapping createObjectMapping(
- @NonNull InputStream input) {
+ public static ObjectMapping createObjectMapping(InputStream input) {
return new ObjectMappingImpl(input);
}
} \ No newline at end of file
diff --git a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/ObjectMapping.java b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/ObjectMapping.java
index 6dd85fa0c..bb8f36c44 100644
--- a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/ObjectMapping.java
+++ b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/ObjectMapping.java
@@ -10,7 +10,6 @@
*******************************************************************************/
package org.eclipse.jubula.client;
-import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;
import org.eclipse.jubula.tools.ComponentIdentifier;
@@ -32,5 +31,5 @@ public interface ObjectMapping {
* @return the component identifier or <code>null</code> if no identifier
* was found
*/
- @Nullable public ComponentIdentifier get(@NonNull String compName);
+ @Nullable public ComponentIdentifier get(String compName);
}
diff --git a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/Result.java b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/Result.java
index a17d92660..922f4a1fd 100644
--- a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/Result.java
+++ b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/Result.java
@@ -10,7 +10,6 @@
*******************************************************************************/
package org.eclipse.jubula.client;
-import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;
import org.eclipse.jubula.client.exceptions.ExecutionException;
import org.eclipse.jubula.communication.CAP;
@@ -40,7 +39,6 @@ public interface Result<T> {
/**
* @return the CAP
*/
- @NonNull
CAP getCAP();
/**
diff --git a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/ActionException.java b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/ActionException.java
index c622a4031..5e985dcc0 100644
--- a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/ActionException.java
+++ b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/ActionException.java
@@ -10,7 +10,6 @@
*******************************************************************************/
package org.eclipse.jubula.client.exceptions;
-import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;
import org.eclipse.jubula.client.Result;
@@ -26,7 +25,7 @@ public class ActionException extends ExecutionException {
* the message
*/
public ActionException(
- @NonNull Result result,
+ Result result,
@Nullable String message) {
super(result, message);
}
diff --git a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/CheckFailedException.java b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/CheckFailedException.java
index 5d4b3a009..cbe8bcc7e 100644
--- a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/CheckFailedException.java
+++ b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/CheckFailedException.java
@@ -10,14 +10,13 @@
*******************************************************************************/
package org.eclipse.jubula.client.exceptions;
-import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;
import org.eclipse.jubula.client.Result;
/** @author BREDEX GmbH */
public class CheckFailedException extends ExecutionException {
/** the actualValue */
- @NonNull private String m_actualValue;
+ private String m_actualValue;
/**
* Constructor
@@ -29,10 +28,9 @@ public class CheckFailedException extends ExecutionException {
* @param message
* the message
*/
- public CheckFailedException(
- @NonNull Result result,
+ public CheckFailedException(Result result,
@Nullable String message,
- @NonNull String actualValue) {
+ String actualValue) {
super(result, message);
m_actualValue = actualValue;
}
@@ -40,7 +38,7 @@ public class CheckFailedException extends ExecutionException {
/**
* @return the actualValue
*/
- @NonNull public String getActualValue() {
+ public String getActualValue() {
return m_actualValue;
}
} \ No newline at end of file
diff --git a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/ComponentNotFoundException.java b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/ComponentNotFoundException.java
index 850f64da8..dbf2cbb8c 100644
--- a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/ComponentNotFoundException.java
+++ b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/ComponentNotFoundException.java
@@ -10,7 +10,6 @@
*******************************************************************************/
package org.eclipse.jubula.client.exceptions;
-import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;
import org.eclipse.jubula.client.Result;
@@ -24,8 +23,7 @@ public class ComponentNotFoundException extends ExecutionException {
* @param message
* the message
*/
- public ComponentNotFoundException(
- @NonNull Result result,
+ public ComponentNotFoundException(Result result,
@Nullable String message) {
super(result, message);
}
diff --git a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/ConfigurationException.java b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/ConfigurationException.java
index 7df1a507d..604dd8f70 100644
--- a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/ConfigurationException.java
+++ b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/ConfigurationException.java
@@ -10,7 +10,6 @@
*******************************************************************************/
package org.eclipse.jubula.client.exceptions;
-import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;
import org.eclipse.jubula.client.Result;
@@ -24,8 +23,7 @@ public class ConfigurationException extends ExecutionException {
* @param message
* the message
*/
- public ConfigurationException(
- @NonNull Result result,
+ public ConfigurationException(Result result,
@Nullable String message) {
super(result, message);
}
diff --git a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/ExecutionException.java b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/ExecutionException.java
index 21704b007..0d4b1164e 100644
--- a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/ExecutionException.java
+++ b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/ExecutionException.java
@@ -10,14 +10,13 @@
*******************************************************************************/
package org.eclipse.jubula.client.exceptions;
-import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;
import org.eclipse.jubula.client.Result;
/** @author BREDEX GmbH */
public abstract class ExecutionException extends RuntimeException {
/** the result */
- @NonNull private Result m_result;
+ private Result m_result;
/**
* Constructor
@@ -27,8 +26,7 @@ public abstract class ExecutionException extends RuntimeException {
* @param message
* the message
*/
- public ExecutionException(
- @NonNull Result result,
+ public ExecutionException(Result result,
@Nullable String message) {
super(message);
m_result = result;
@@ -37,7 +35,7 @@ public abstract class ExecutionException extends RuntimeException {
/**
* @return the result
*/
- @NonNull public Result getResult() {
+ public Result getResult() {
return m_result;
}
} \ No newline at end of file
diff --git a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/ExecutionExceptionHandler.java b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/ExecutionExceptionHandler.java
index 021254c2b..f1da1d4d0 100644
--- a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/ExecutionExceptionHandler.java
+++ b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/ExecutionExceptionHandler.java
@@ -10,16 +10,14 @@
*******************************************************************************/
package org.eclipse.jubula.client.exceptions;
-import org.eclipse.jdt.annotation.NonNull;
/** @author BREDEX GmbH */
public interface ExecutionExceptionHandler {
-
/**
* @param ee
* the execution exception to handle
* @throws ExecutionException
* in case of e.g. no handling
*/
- void handle(@NonNull ExecutionException ee) throws ExecutionException;
+ void handle(ExecutionException ee) throws ExecutionException;
} \ No newline at end of file
diff --git a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/LoadResourceException.java b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/LoadResourceException.java
index f031ffe37..d1875d76b 100644
--- a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/LoadResourceException.java
+++ b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/LoadResourceException.java
@@ -10,7 +10,6 @@
*******************************************************************************/
package org.eclipse.jubula.client.exceptions;
-import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;
/**
@@ -23,8 +22,7 @@ public class LoadResourceException extends Exception {
/**
* @param message The detailed message for this exception.
*/
- public LoadResourceException(
- @NonNull String message) {
+ public LoadResourceException(String message) {
super(message);
}
@@ -32,8 +30,7 @@ public class LoadResourceException extends Exception {
* @param message The detailed message for this exception.
* @param cause The cause for the exception.
*/
- public LoadResourceException(
- @NonNull String message,
+ public LoadResourceException(String message,
@Nullable Throwable cause) {
super(message, cause);
}
diff --git a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/package-info.java b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/package-info.java
new file mode 100644
index 000000000..d5c3a6732
--- /dev/null
+++ b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/exceptions/package-info.java
@@ -0,0 +1,12 @@
+/*******************************************************************************
+ * Copyright (c) 2014 BREDEX GmbH.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * BREDEX GmbH - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+@org.eclipse.jdt.annotation.NonNullByDefault
+package org.eclipse.jubula.client.exceptions; \ No newline at end of file
diff --git a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/package-info.java b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/package-info.java
new file mode 100644
index 000000000..45e7af11a
--- /dev/null
+++ b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/package-info.java
@@ -0,0 +1,12 @@
+/*******************************************************************************
+ * Copyright (c) 2014 BREDEX GmbH.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * BREDEX GmbH - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+@org.eclipse.jdt.annotation.NonNullByDefault
+package org.eclipse.jubula.client; \ No newline at end of file

Back to the top