summaryrefslogtreecommitdiff
path: root/projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSNotification.java
diff options
context:
space:
mode:
authorBenjamin Culkin <scorpress@gmail.com>2024-07-05 12:43:13 -0400
committerBenjamin Culkin <scorpress@gmail.com>2024-07-05 12:43:13 -0400
commit6d46c473d41c6c47e6b8bd8c676d925e544bd378 (patch)
tree796d51bfff52f8f3fa383b2d26847b7c8160677b /projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSNotification.java
parent02bc52037e9ccccca672d6156d9c325c74fe28b3 (diff)
More cleanup
Diffstat (limited to 'projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSNotification.java')
-rw-r--r--projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSNotification.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSNotification.java b/projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSNotification.java
index 4fbd8af..90d09a4 100644
--- a/projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSNotification.java
+++ b/projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSNotification.java
@@ -33,7 +33,7 @@ public class NSNotification {
protected String name;
protected Object object;
- protected Map userInfo;
+ protected Map<? extends Object, ? extends Object> userInfo;
// for debugging only
private Throwable stackTrace;
@@ -57,7 +57,7 @@ public class NSNotification {
* Constructor specifying name, object, and a Map containing application
* specific information.
*/
- public NSNotification(String aName, Object anObject, Map aUserInfo) {
+ public NSNotification(String aName, Object anObject, Map<? extends Object, ? extends Object> aUserInfo) {
name = aName;
object = anObject;
if (showStack)
@@ -84,7 +84,7 @@ public class NSNotification {
* specific information relating to this notification, or null if no such data
* exists.
*/
- public NSDictionary userInfo() {
+ public NSDictionary<? extends Object, ? extends Object> userInfo() {
if (userInfo == null)
return null;
return new NSDictionary<>(userInfo);
@@ -95,7 +95,7 @@ public class NSNotification {
* notification, or null if no such data exists. Note: this method is not in the
* spec.
*/
- public Map userInfoMap() {
+ public Map<? extends Object, ? extends Object> userInfoMap() {
return userInfo;
}
@@ -111,6 +111,7 @@ public class NSNotification {
/**
* Returns a human-readable string representation.
*/
+ @Override
public String toString() {
return "[ " + name() + " : " + object() + " : " + userInfo() + " ]";
}