Add Nullability support into Java DSL
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016-2019 the original author or authors.
|
||||
* Copyright 2016-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -38,7 +38,7 @@ import org.springframework.util.StringUtils;
|
||||
* The adapter {@link MessageProcessor} around {@link AbstractScriptExecutingMessageProcessor}.
|
||||
* Delegates to the {@code GroovyScriptExecutingMessageProcessor}, if provided {@link #lang}
|
||||
* matches to {@code groovy} string and {@code spring-integration-groovy} jar is in classpath.
|
||||
* Otherwise to the {@link ScriptExecutingMessageProcessor}.
|
||||
* Otherwise, to the {@link ScriptExecutingMessageProcessor}.
|
||||
*
|
||||
* @author Artem Bilan
|
||||
*
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016-2019 the original author or authors.
|
||||
* Copyright 2016-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -40,7 +40,7 @@ public class ScriptSpec extends MessageProcessorSpec<ScriptSpec> {
|
||||
|
||||
private ScriptVariableGenerator variableGenerator;
|
||||
|
||||
private Map<String, Object> variables = new HashMap<String, Object>();
|
||||
private final Map<String, Object> variables = new HashMap<>();
|
||||
|
||||
ScriptSpec(Resource scriptResource) {
|
||||
Assert.notNull(scriptResource, "'scriptResource' must not be null");
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
/**
|
||||
* Provides Scripting Components support for Spring Integration Java DSL.
|
||||
*/
|
||||
@org.springframework.lang.NonNullApi
|
||||
package org.springframework.integration.scripting.dsl;
|
||||
|
||||
Reference in New Issue
Block a user