Remove unneeded type specification 49/93149/2
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 18 Oct 2020 16:53:53 +0000 (18:53 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 19 Oct 2020 09:05:45 +0000 (11:05 +0200)
Eclipse is informing us we are overly verbose, fix that.

Change-Id: Ibdf33a03898ab337e8352e240b9e02629f8ea0bb
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/type/ConcreteTypes.java

index 7a184f2506080d9581007ceb94f0d3d97e67d3fe..039b2b9d715051d09dd778a67db1b95f6e290064 100644 (file)
@@ -87,7 +87,7 @@ public final class ConcreteTypes {
 
     private static ConcreteTypeBuilder<BinaryTypeDefinition> concreteBinaryBuilder(
             final BinaryTypeDefinition baseType, final SchemaPath path) {
-        return new ConcreteTypeBuilder<BinaryTypeDefinition>(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<BitsTypeDefinition> concreteBitsBuilder(final BitsTypeDefinition baseType,
             final SchemaPath path) {
-        return new ConcreteTypeBuilder<BitsTypeDefinition>(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<BooleanTypeDefinition> concreteBooleanBuilder(
             final BooleanTypeDefinition baseType, final SchemaPath path) {
-        return new ConcreteTypeBuilder<BooleanTypeDefinition>(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<DecimalTypeDefinition> concreteDecimalBuilder(
             final DecimalTypeDefinition baseType, final SchemaPath path) {
-        return new ConcreteTypeBuilder<DecimalTypeDefinition>(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<EmptyTypeDefinition> concreteEmptyBuilder(final EmptyTypeDefinition baseType,
             final SchemaPath path) {
-        return new ConcreteTypeBuilder<EmptyTypeDefinition>(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<EnumTypeDefinition> concreteEnumerationBuilder(
             final EnumTypeDefinition baseType, final SchemaPath path) {
-        return new ConcreteTypeBuilder<EnumTypeDefinition>(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<IdentityrefTypeDefinition> concreteIdentityrefBuilder(
             final IdentityrefTypeDefinition baseType, final SchemaPath path) {
-        return new ConcreteTypeBuilder<IdentityrefTypeDefinition>(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<InstanceIdentifierTypeDefinition> concreteInstanceIdentifierBuilder(
             final InstanceIdentifierTypeDefinition baseType, final SchemaPath path) {
-        return new ConcreteTypeBuilder<InstanceIdentifierTypeDefinition>(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<Int8TypeDefinition> concreteInt8Builder(
             final Int8TypeDefinition baseType, final SchemaPath path) {
-        return new ConcreteTypeBuilder<Int8TypeDefinition>(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<Int16TypeDefinition> concreteInt16Builder(
             final Int16TypeDefinition baseType, final SchemaPath path) {
-        return new ConcreteTypeBuilder<Int16TypeDefinition>(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<Int32TypeDefinition> concreteInt32Builder(
             final Int32TypeDefinition baseType, final SchemaPath path) {
-        return new ConcreteTypeBuilder<Int32TypeDefinition>(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<Int64TypeDefinition> concreteInt64Builder(
             final Int64TypeDefinition baseType, final SchemaPath path) {
-        return new ConcreteTypeBuilder<Int64TypeDefinition>(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<LeafrefTypeDefinition> concreteLeafrefBuilder(
             final LeafrefTypeDefinition baseType, final SchemaPath path) {
-        return new ConcreteTypeBuilder<LeafrefTypeDefinition>(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<StringTypeDefinition> concreteStringBuilder(final StringTypeDefinition baseType,
             final SchemaPath path) {
-        return new ConcreteTypeBuilder<StringTypeDefinition>(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<UnionTypeDefinition> concreteUnionBuilder(final UnionTypeDefinition baseType,
             final SchemaPath path) {
-        return new ConcreteTypeBuilder<UnionTypeDefinition>(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<Uint8TypeDefinition> concreteUint8Builder(
             final Uint8TypeDefinition baseType, final SchemaPath path) {
-        return new ConcreteTypeBuilder<Uint8TypeDefinition>(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<Uint16TypeDefinition> concreteUint16Builder(
             final Uint16TypeDefinition baseType, final SchemaPath path) {
-        return new ConcreteTypeBuilder<Uint16TypeDefinition>(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<Uint32TypeDefinition> concreteUint32Builder(
             final Uint32TypeDefinition baseType, final SchemaPath path) {
-        return new ConcreteTypeBuilder<Uint32TypeDefinition>(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<Uint64TypeDefinition> concreteUint64Builder(
             final Uint64TypeDefinition baseType, final SchemaPath path) {
-        return new ConcreteTypeBuilder<Uint64TypeDefinition>(baseType, path) {
+        return new ConcreteTypeBuilder<>(baseType, path) {
             @Override
             public Uint64TypeDefinition buildType() {
                 return new DerivedUint64Type(getBaseType(), getPath(), getDefaultValue(), getDescription(),