Skip to content

Commit b46d54f

Browse files
committed
remove generic type usage with instanceof operator
Signed-off-by: Kaushal Kumar <[email protected]>
1 parent ae3289b commit b46d54f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/autotagging-commons/src/test/java/org/opensearch/rule/storage/AttributeValueStoreFactoryTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ public void setUp() throws Exception {
2424

2525
public void testFeatureLevelStoreInitialisation() {
2626
for (Attribute attribute : WLMFeatureType.WLM.getAllowedAttributesRegistry().values()) {
27-
assertTrue(sut.getAttributeValueStore(attribute) instanceof DefaultAttributeValueStore<String, String>);
27+
assertTrue(sut.getAttributeValueStore(attribute) instanceof DefaultAttributeValueStore);
2828
}
2929
}
3030

3131
public void testValidGetAttributeValueStore() {
32-
assertTrue(sut.getAttributeValueStore(TestAttribute.TEST_ATTRIBUTE) instanceof DefaultAttributeValueStore<String, String>);
32+
assertTrue(sut.getAttributeValueStore(TestAttribute.TEST_ATTRIBUTE) instanceof DefaultAttributeValueStore);
3333
}
3434

3535
public void testInValidGetAttributeValueStore() {

0 commit comments

Comments
 (0)