Skip to content

Commit 546b6b3

Browse files
committed
WICKET-7024 javadoc fix
1 parent 117d4f5 commit 546b6b3

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

wicket-core-tests/src/test/java/org/apache/wicket/core/request/resource/PackageResourceReferenceTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@
2424
import static org.junit.jupiter.api.Assertions.assertFalse;
2525
import static org.junit.jupiter.api.Assertions.assertNotNull;
2626
import static org.junit.jupiter.api.Assertions.assertTrue;
27-
import static org.mockito.Mockito.*;
27+
import static org.mockito.Mockito.mock;
2828
import static org.mockito.Mockito.times;
29+
import static org.mockito.Mockito.verify;
30+
import static org.mockito.Mockito.when;
2931

3032
import java.io.IOException;
3133
import java.io.InputStream;
@@ -55,12 +57,10 @@
5557
import org.apache.wicket.request.resource.ResourceReference.UrlAttributes;
5658
import org.apache.wicket.response.ByteArrayResponse;
5759
import org.apache.wicket.util.io.IOUtils;
58-
import org.apache.wicket.util.resource.FileResourceStream;
5960
import org.apache.wicket.util.resource.IResourceStream;
6061
import org.apache.wicket.util.resource.StringResourceStream;
6162
import org.apache.wicket.util.tester.WicketTestCase;
6263
import org.junit.jupiter.api.BeforeEach;
63-
import org.junit.jupiter.api.Disabled;
6464
import org.junit.jupiter.api.Test;
6565

6666
/**

wicket-core/src/main/java/org/apache/wicket/request/resource/PackageResource.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ public static boolean exists(final ResourceReference.Key key)
738738
* The component's variation (of the style)
739739
* @return {@code true} if a resource could be loaded, {@code false} otherwise
740740
*
741-
* @deprecated @see {@link PackageResource#exists(Class, String, Locale, String, String, boolean)}
741+
* @deprecated use {@link PackageResource#exists(Class, String, Locale, String, String, boolean)}
742742
*/
743743
public static boolean exists(final Class<?> scope, final String path, final Locale locale,
744744
final String style, final String variation)

wicket-core/src/main/java/org/apache/wicket/request/resource/ResourceReferenceRegistry.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public final ResourceReference unregisterResourceReference(final Key key)
187187
}
188188

189189
/**
190-
* @deprecated @see {@link ResourceReferenceRegistry#getResourceReference(Class, String, Locale, String, String, boolean, boolean, boolean)}
190+
* @deprecated use {@link ResourceReferenceRegistry#getResourceReference(Class, String, Locale, String, String, boolean, boolean, boolean)}
191191
*/
192192
public final ResourceReference getResourceReference(final Class<?> scope, final String name,
193193
final Locale locale, final String style, final String variation, final boolean strict,
@@ -237,7 +237,7 @@ public ResourceReference getResourceReference(Class<?> scope, String name, Local
237237
}
238238

239239
/**
240-
* @deprecated @see {@link ResourceReferenceRegistry#getResourceReference(Key, boolean, boolean, boolean)}
240+
* @deprecated use {@link ResourceReferenceRegistry#getResourceReference(Key, boolean, boolean, boolean)}
241241
*/
242242
public final ResourceReference getResourceReference(final Key key, final boolean strict,
243243
final boolean createIfNotFound){
@@ -262,7 +262,7 @@ public final ResourceReference getResourceReference(final Key key, final boolean
262262
* @param createIfNotFound
263263
* If true a default resource reference is created if no entry can be found in the
264264
* registry. The newly created resource reference will be added to the registry.
265-
* @param strict
265+
* @param updateCache
266266
* If true, the server resource stream reference cache should be updated
267267
* @return Either the resource reference found in the registry or, if requested, a resource
268268
* reference automatically created based on the parameters provided. The automatically
@@ -412,7 +412,7 @@ private void enforceAutoAddedCacheSize(int maxSize)
412412
}
413413

414414
/**
415-
* @deprecated @see {@link ResourceReferenceRegistry#createDefaultResourceReference(Key, boolean)}
415+
* @deprecated use {@link ResourceReferenceRegistry#createDefaultResourceReference(Key, boolean)}
416416
*/
417417
protected ResourceReference createDefaultResourceReference(final Key key)
418418
{

0 commit comments

Comments
 (0)