ramanathan1504 commented on code in PR #4116:
URL: https://github.com/apache/logging-log4j2/pull/4116#discussion_r3674987260


##########
log4j-core/src/main/java/org/apache/logging/log4j/core/config/builder/api/Component.java:
##########
@@ -74,7 +93,28 @@ public String getPluginType() {
         return pluginType;
     }
 
-    public String getValue() {
+    public @Nullable String getValue() {
         return value;
     }
+
+    /**
+     * Puts the given key/value pair to the attribute map.
+     * <p>
+     *   If the new value is {@code null}, then any existing entry with the 
given {@code key}
+     *   is removed from the map.
+     * </p>
+     * @param key the key
+     * @param newValue the new value
+     * @return the previous value or {@code null} if none was set
+     */
+    protected @Nullable String putAttribute(final String key, final @Nullable 
String newValue) {

Review Comment:
   @vy bb0cb3d



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to