Clean up warnings in Gradle build output

This commit is contained in:
Sam Brannen 2019-03-28 12:15:02 +01:00
parent 09690f2750
commit 025eaf688f
5 changed files with 7 additions and 6 deletions

View File

@ -244,7 +244,7 @@ abstract public class AbstractClassGenerator<T> implements ClassGenerator {
/**
* Set the strategy to use to create the bytecode from this generator.
* By default an instance of {@see DefaultGeneratorStrategy} is used.
* By default an instance of {@link DefaultGeneratorStrategy} is used.
*/
public void setStrategy(GeneratorStrategy strategy) {
if (strategy == null)

View File

@ -762,7 +762,7 @@ public class Enhancer extends AbstractClassGenerator {
/**
* This method should not be called in regular flow.
* Technically speaking {@link #wrapCachedClass(Class)} uses {@link EnhancerFactoryData} as a cache value,
* Technically speaking {@link #wrapCachedClass(Class)} uses {@link Enhancer.EnhancerFactoryData} as a cache value,
* and the latter enables faster instantiation than plain old reflection lookup and invoke.
* This method is left intact for backward compatibility reasons: just in case it was ever used.
* @param type class to instantiate

View File

@ -102,7 +102,7 @@ public abstract class MergedAnnotationCollectors {
* @param options the map conversion options
* @return a {@link Collector} which collects and synthesizes the
* annotations into a {@link LinkedMultiValueMap}
* @see #toMultiValueMap(Function, MapValues...)
* @see #toMultiValueMap(Function, MergedAnnotation.MapValues...)
*/
public static <A extends Annotation> Collector<MergedAnnotation<A>, ?, MultiValueMap<String, Object>> toMultiValueMap(
MapValues... options) {
@ -120,7 +120,7 @@ public abstract class MergedAnnotationCollectors {
* @param finisher the finisher function for the new {@link MultiValueMap}
* @return a {@link Collector} which collects and synthesizes the
* annotations into a {@link LinkedMultiValueMap}
* @see #toMultiValueMap(MapValues...)
* @see #toMultiValueMap(MergedAnnotation.MapValues...)
*/
public static <A extends Annotation> Collector<MergedAnnotation<A>, ?, MultiValueMap<String, Object>> toMultiValueMap(
Function<MultiValueMap<String, Object>, MultiValueMap<String, Object>> finisher,

View File

@ -40,14 +40,14 @@ class PropertyResolverExtensionsTests {
@Test
fun `getProperty extension`() {
every { propertyResolver.getProperty("name", String::class.java) } returns "foo"
val name: String? = propertyResolver.getProperty<String>("name")
propertyResolver.getProperty<String>("name")
verify { propertyResolver.getProperty("name", String::class.java) }
}
@Test
fun `getRequiredProperty extension`() {
every { propertyResolver.getRequiredProperty("name", String::class.java) } returns "foo"
val name: String = propertyResolver.getRequiredProperty<String>("name")
propertyResolver.getRequiredProperty<String>("name")
verify { propertyResolver.getRequiredProperty("name", String::class.java) }
}

View File

@ -676,6 +676,7 @@ public class Jackson2ObjectMapperBuilderTests {
}
@SuppressWarnings("serial")
public static class MyXmlFactory extends XmlFactory {
}