From 6d46c473d41c6c47e6b8bd8c676d925e544bd378 Mon Sep 17 00:00:00 2001 From: Benjamin Culkin Date: Fri, 5 Jul 2024 12:43:13 -0400 Subject: More cleanup --- .../src/main/java/net/wotonomy/foundation/NSNotification.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/NSNotification.java') 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 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 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 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 userInfoMap() { return userInfo; } @@ -111,6 +111,7 @@ public class NSNotification { /** * Returns a human-readable string representation. */ + @Override public String toString() { return "[ " + name() + " : " + object() + " : " + userInfo() + " ]"; } -- cgit v1.2.3