This is an automated email from the ASF dual-hosted git repository.

radu pushed a commit to branch issue/SLING-8737
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-core.git


The following commit(s) were added to refs/heads/issue/SLING-8737 by this push:
     new c294d39  SLING-8737 - Add support for lazily-evaluated bindings
c294d39 is described below

commit c294d3960a86ae43175dd1fa9e781b9773c462ca
Author: Radu Cotescu <[email protected]>
AuthorDate: Thu Nov 14 12:01:14 2019 +0100

    SLING-8737 - Add support for lazily-evaluated bindings
    
    * carried over the @NotNull annotations
---
 .../apache/sling/scripting/core/impl/helper/ProtectedBindings.java    | 4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/src/main/java/org/apache/sling/scripting/core/impl/helper/ProtectedBindings.java
 
b/src/main/java/org/apache/sling/scripting/core/impl/helper/ProtectedBindings.java
index f0b7c82..c117b37 100644
--- 
a/src/main/java/org/apache/sling/scripting/core/impl/helper/ProtectedBindings.java
+++ 
b/src/main/java/org/apache/sling/scripting/core/impl/helper/ProtectedBindings.java
@@ -26,6 +26,7 @@ import java.util.Set;
 import javax.script.Bindings;
 
 import org.apache.sling.api.scripting.LazyBindings;
+import org.jetbrains.annotations.NotNull;
 
 public class ProtectedBindings extends LazyBindings implements Bindings {
 
@@ -92,6 +93,7 @@ public class ProtectedBindings extends LazyBindings 
implements Bindings {
      *
      * @return an unmodifiable Set view of the map
      */
+    @NotNull
     public Set<Entry<String, Object>> entrySet() {
         return Collections.unmodifiableSet(wrapped.entrySet());
     }
@@ -109,6 +111,7 @@ public class ProtectedBindings extends LazyBindings 
implements Bindings {
      *
      * @return an unmodifiable Set view of the map's keys
      */
+    @NotNull
     public Set<String> keySet() {
         return Collections.unmodifiableSet(wrapped.keySet());
     }
@@ -126,6 +129,7 @@ public class ProtectedBindings extends LazyBindings 
implements Bindings {
      *
      * @return an unmodifiable Collection view of the map's values
      */
+    @NotNull
     public Collection<Object> values() {
         return Collections.unmodifiableCollection(wrapped.values());
     }

Reply via email to