Skip to content

Commit

Permalink
Correct javadoc errors, update weld-parent version.
Browse files Browse the repository at this point in the history
  • Loading branch information
manovotn committed Jan 13, 2021
1 parent 2af4445 commit 2f4b7f4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
5 changes: 2 additions & 3 deletions junit-common/src/main/java/org/jboss/weld/junit/MockBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@
* This custom {@link Bean} implementation is useful for mocking.
* <p>
* A new instance is usually created through a {@link Builder} (see also {@link #builder()}) and then passed to the
* {@link WeldInitiator.Builder#addBeans(Bean...)} method.
* {@code WeldInitiator.Builder#addBeans(Bean...)} method.
* </p>
*
* @author Martin Kouba
*
* @param <T>
* @see WeldInitiator.Builder#addBean(Bean)
* See also {@code WeldInitiator.Builder#addBean(Bean)} method.
* @since 1.1
*/
public class MockBean<T> implements Bean<T>, PassivationCapable {
Expand Down Expand Up @@ -654,7 +654,6 @@ public interface DestroyFunction<T> {
*
* @param instance
* @param creationalContext
* @return a new bean instance
*/
void destroy(T instance, CreationalContext<T> creationalContext);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
* This custom {@link Interceptor} implementation is useful for mocking.
* <p>
* A new instance is usually created through a {@link Builder} (see also {@link #withBindings(Annotation...)} method) and then passed to the
* {@link WeldInitiator.Builder#addBeans(Bean...)} method.
* {@code WeldInitiator.Builder#addBeans(Bean...)} method.
* </p>
* <p>
* Note that by default all mock interceptors are automatically enabled for the synthetic bean archive. If needed a custom bean class can be set through the
Expand All @@ -51,7 +51,7 @@
* </p>
*
* @author Martin Kouba
* @see WeldInitiator.Builder#addBean(Bean)
* See also {code WeldInitiator.Builder#addBean(Bean)} method.
* @since 1.2.1
*/
public class MockInterceptor implements Interceptor<MockInterceptorInstance> {
Expand Down Expand Up @@ -250,7 +250,7 @@ public Builder beanClass(Class<?> beanClass) {

/**
*
* @param function The interception callback, intercepted bean might be <code>null</code>
* @param callback The interception callback, intercepted bean might be <code>null</code>
* @return self
*/
public Builder callback(InterceptionCallback callback) {
Expand Down
15 changes: 14 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-parent</artifactId>
<version>37</version>
<version>42</version>
</parent>

<url>http://weld.cdi-spec.org</url>
Expand Down Expand Up @@ -180,4 +180,17 @@
</pluginManagement>
</build>

<!-- Needed to download org.apache.maven.plugins:maven-compiler-plugin:jar -->
<pluginRepositories>
<pluginRepository>
<id>jboss-public-repository-group</id>
<name>JBoss Public Repository Group</name>
<url>https://repository.jboss.org/nexus/content/groups/public</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
</pluginRepositories>

</project>

0 comments on commit 2f4b7f4

Please sign in to comment.