Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,12 @@ limitations under the License.
<version>1</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.eclipse.sisu</groupId>
<artifactId>org.eclipse.sisu.inject</artifactId>
<version>0.9.0.M4</version>
<scope>provided</scope>
<scope>test</scope>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import org.apache.velocity.app.VelocityEngine;
import org.codehaus.plexus.velocity.VelocityComponent;
import org.codehaus.plexus.velocity.VelocityComponentConfigurator;
import org.eclipse.sisu.Nullable;

/**
* Default component implementation. The presence of {@link VelocityComponentConfigurator} is optional.
Expand Down
18 changes: 18 additions & 0 deletions src/main/java/org/codehaus/plexus/velocity/internal/Nullable.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package org.codehaus.plexus.velocity.internal;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
* Internal <code>Nullable</code> annotation to mark parameters that can be null.
* <p>
* Guice allow any Nullable annotation, so this one can be used instead of adding a dependency to sisu-inject.
* <a href="https://github.com/google/guice/wiki/UseNullable">UseNullable</a>
*/
@Target({ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@interface Nullable {}