From 56abb5f710725a3dc4f40d3be84444bc84c4d4ac Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Sun, 18 Oct 2020 18:53:53 +0200 Subject: [PATCH] Remove unneeded type specification Eclipse is informing us we are overly verbose, fix that. Change-Id: Ibdf33a03898ab337e8352e240b9e02629f8ea0bb Signed-off-by: Robert Varga --- .../yang/model/util/type/ConcreteTypes.java | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/type/ConcreteTypes.java b/yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/type/ConcreteTypes.java index 7a184f2506..039b2b9d71 100644 --- a/yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/type/ConcreteTypes.java +++ b/yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/type/ConcreteTypes.java @@ -87,7 +87,7 @@ public final class ConcreteTypes { private static ConcreteTypeBuilder concreteBinaryBuilder( final BinaryTypeDefinition baseType, final SchemaPath path) { - return new ConcreteTypeBuilder(baseType, path) { + return new ConcreteTypeBuilder<>(baseType, path) { @Override public BinaryTypeDefinition buildType() { return new DerivedBinaryType(getBaseType(), getPath(), getDefaultValue(), getDescription(), @@ -98,7 +98,7 @@ public final class ConcreteTypes { private static ConcreteTypeBuilder concreteBitsBuilder(final BitsTypeDefinition baseType, final SchemaPath path) { - return new ConcreteTypeBuilder(baseType, path) { + return new ConcreteTypeBuilder<>(baseType, path) { @Override public BitsTypeDefinition buildType() { return new DerivedBitsType(getBaseType(), getPath(), getDefaultValue(), getDescription(), @@ -109,7 +109,7 @@ public final class ConcreteTypes { private static ConcreteTypeBuilder concreteBooleanBuilder( final BooleanTypeDefinition baseType, final SchemaPath path) { - return new ConcreteTypeBuilder(baseType, path) { + return new ConcreteTypeBuilder<>(baseType, path) { @Override public BooleanTypeDefinition buildType() { return new DerivedBooleanType(getBaseType(), getPath(), getDefaultValue(), getDescription(), @@ -120,7 +120,7 @@ public final class ConcreteTypes { private static ConcreteTypeBuilder concreteDecimalBuilder( final DecimalTypeDefinition baseType, final SchemaPath path) { - return new ConcreteTypeBuilder(baseType, path) { + return new ConcreteTypeBuilder<>(baseType, path) { @Override public DecimalTypeDefinition buildType() { return new DerivedDecimalType(getBaseType(), getPath(), getDefaultValue(), getDescription(), @@ -131,7 +131,7 @@ public final class ConcreteTypes { private static ConcreteTypeBuilder concreteEmptyBuilder(final EmptyTypeDefinition baseType, final SchemaPath path) { - return new ConcreteTypeBuilder(baseType, path) { + return new ConcreteTypeBuilder<>(baseType, path) { @Override public EmptyTypeDefinition buildType() { return new DerivedEmptyType(getBaseType(), getPath(), getDefaultValue(), getDescription(), @@ -142,7 +142,7 @@ public final class ConcreteTypes { private static ConcreteTypeBuilder concreteEnumerationBuilder( final EnumTypeDefinition baseType, final SchemaPath path) { - return new ConcreteTypeBuilder(baseType, path) { + return new ConcreteTypeBuilder<>(baseType, path) { @Override public EnumTypeDefinition buildType() { return new DerivedEnumerationType(getBaseType(), getPath(), getDefaultValue(), getDescription(), @@ -153,7 +153,7 @@ public final class ConcreteTypes { private static ConcreteTypeBuilder concreteIdentityrefBuilder( final IdentityrefTypeDefinition baseType, final SchemaPath path) { - return new ConcreteTypeBuilder(baseType, path) { + return new ConcreteTypeBuilder<>(baseType, path) { @Override public IdentityrefTypeDefinition buildType() { return new DerivedIdentityrefType(getBaseType(), getPath(), getDefaultValue(), getDescription(), @@ -164,7 +164,7 @@ public final class ConcreteTypes { private static ConcreteTypeBuilder concreteInstanceIdentifierBuilder( final InstanceIdentifierTypeDefinition baseType, final SchemaPath path) { - return new ConcreteTypeBuilder(baseType, path) { + return new ConcreteTypeBuilder<>(baseType, path) { @Override public InstanceIdentifierTypeDefinition buildType() { return new DerivedInstanceIdentifierType(getBaseType(), getPath(), getDefaultValue(), getDescription(), @@ -175,7 +175,7 @@ public final class ConcreteTypes { private static ConcreteTypeBuilder concreteInt8Builder( final Int8TypeDefinition baseType, final SchemaPath path) { - return new ConcreteTypeBuilder(baseType, path) { + return new ConcreteTypeBuilder<>(baseType, path) { @Override public Int8TypeDefinition buildType() { return new DerivedInt8Type(getBaseType(), getPath(), getDefaultValue(), getDescription(), @@ -186,7 +186,7 @@ public final class ConcreteTypes { private static ConcreteTypeBuilder concreteInt16Builder( final Int16TypeDefinition baseType, final SchemaPath path) { - return new ConcreteTypeBuilder(baseType, path) { + return new ConcreteTypeBuilder<>(baseType, path) { @Override public Int16TypeDefinition buildType() { return new DerivedInt16Type(getBaseType(), getPath(), getDefaultValue(), getDescription(), @@ -197,7 +197,7 @@ public final class ConcreteTypes { private static ConcreteTypeBuilder concreteInt32Builder( final Int32TypeDefinition baseType, final SchemaPath path) { - return new ConcreteTypeBuilder(baseType, path) { + return new ConcreteTypeBuilder<>(baseType, path) { @Override public Int32TypeDefinition buildType() { return new DerivedInt32Type(getBaseType(), getPath(), getDefaultValue(), getDescription(), @@ -208,7 +208,7 @@ public final class ConcreteTypes { private static ConcreteTypeBuilder concreteInt64Builder( final Int64TypeDefinition baseType, final SchemaPath path) { - return new ConcreteTypeBuilder(baseType, path) { + return new ConcreteTypeBuilder<>(baseType, path) { @Override public Int64TypeDefinition buildType() { return new DerivedInt64Type(getBaseType(), getPath(), getDefaultValue(), getDescription(), @@ -219,7 +219,7 @@ public final class ConcreteTypes { private static ConcreteTypeBuilder concreteLeafrefBuilder( final LeafrefTypeDefinition baseType, final SchemaPath path) { - return new ConcreteTypeBuilder(baseType, path) { + return new ConcreteTypeBuilder<>(baseType, path) { @Override public LeafrefTypeDefinition buildType() { return new DerivedLeafrefType(getBaseType(), getPath(), getDefaultValue(), getDescription(), @@ -230,7 +230,7 @@ public final class ConcreteTypes { private static ConcreteTypeBuilder concreteStringBuilder(final StringTypeDefinition baseType, final SchemaPath path) { - return new ConcreteTypeBuilder(baseType, path) { + return new ConcreteTypeBuilder<>(baseType, path) { @Override public StringTypeDefinition buildType() { return new DerivedStringType(getBaseType(), getPath(), getDefaultValue(), getDescription(), @@ -241,7 +241,7 @@ public final class ConcreteTypes { private static ConcreteTypeBuilder concreteUnionBuilder(final UnionTypeDefinition baseType, final SchemaPath path) { - return new ConcreteTypeBuilder(baseType, path) { + return new ConcreteTypeBuilder<>(baseType, path) { @Override public DerivedUnionType buildType() { return new DerivedUnionType(getBaseType(), getPath(), getDefaultValue(), getDescription(), @@ -252,7 +252,7 @@ public final class ConcreteTypes { private static ConcreteTypeBuilder concreteUint8Builder( final Uint8TypeDefinition baseType, final SchemaPath path) { - return new ConcreteTypeBuilder(baseType, path) { + return new ConcreteTypeBuilder<>(baseType, path) { @Override public Uint8TypeDefinition buildType() { return new DerivedUint8Type(getBaseType(), getPath(), getDefaultValue(), getDescription(), @@ -263,7 +263,7 @@ public final class ConcreteTypes { private static ConcreteTypeBuilder concreteUint16Builder( final Uint16TypeDefinition baseType, final SchemaPath path) { - return new ConcreteTypeBuilder(baseType, path) { + return new ConcreteTypeBuilder<>(baseType, path) { @Override public Uint16TypeDefinition buildType() { return new DerivedUint16Type(getBaseType(), getPath(), getDefaultValue(), getDescription(), @@ -274,7 +274,7 @@ public final class ConcreteTypes { private static ConcreteTypeBuilder concreteUint32Builder( final Uint32TypeDefinition baseType, final SchemaPath path) { - return new ConcreteTypeBuilder(baseType, path) { + return new ConcreteTypeBuilder<>(baseType, path) { @Override public Uint32TypeDefinition buildType() { return new DerivedUint32Type(getBaseType(), getPath(), getDefaultValue(), getDescription(), @@ -285,7 +285,7 @@ public final class ConcreteTypes { private static ConcreteTypeBuilder concreteUint64Builder( final Uint64TypeDefinition baseType, final SchemaPath path) { - return new ConcreteTypeBuilder(baseType, path) { + return new ConcreteTypeBuilder<>(baseType, path) { @Override public Uint64TypeDefinition buildType() { return new DerivedUint64Type(getBaseType(), getPath(), getDefaultValue(), getDescription(), -- 2.36.6