test_class.declarator: TEST_MSG_1_TYPE = 1
test_class.modifier: private static final
test_class.original_string: private static final short TEST_MSG_1_TYPE = 1;
test_class.type: short
test_class.var_name: TEST_MSG_1_TYPE
test_class.declarator: TEST_MSG_2_TYPE = 2
test_class.modifier: private static final
test_class.original_string: private static final short TEST_MSG_2_TYPE = 2;
test_class.type: short
test_class.var_name: TEST_MSG_2_TYPE
test_class.declarator: TEST_MSG_42_TYPE = 42
test_class.modifier: private static final
test_class.original_string: private static final short TEST_MSG_42_TYPE = 42;
test_class.type: short
test_class.var_name: TEST_MSG_42_TYPE
test_class.declarator: UNKNOWN_MSG_TYPE = 0
test_class.modifier: private static final
test_class.original_string: private static final short UNKNOWN_MSG_TYPE = 0;
test_class.type: short
test_class.var_name: UNKNOWN_MSG_TYPE
test_class.file: modules/core/src/test/java/org/apache/ignite/internal/managers/communication/IgniteMessageFactoryImplTest.java
test_class.identifier: IgniteMessageFactoryImplTest
test_case.body: @Test(expected = IgniteException.class)
      public void testCreate_UnknownMessageType() {
          MessageFactory[] factories = {new TestMessageFactoryPovider(), new TestMessageFactory()};
  
          IgniteMessageFactory msgFactory = new IgniteMessageFactoryImpl(factories);
  
          msgFactory.create(UNKNOWN_MSG_TYPE);
      }
test_case.class_method_signature: IgniteMessageFactoryImplTest.testCreate_UnknownMessageType()
test_case.full_signature: @Test(expected = IgniteException.class) public void testCreate_UnknownMessageType()
test_case.identifier: testCreate_UnknownMessageType
test_case.invocations: create
test_case.modifiers: @Test(expected = IgniteException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCreate_UnknownMessageType()
focal_class.declarator: OFF = -Short.MIN_VALUE
focal_class.modifier: private static final
focal_class.original_string: private static final int OFF = -Short.MIN_VALUE;
focal_class.type: int
focal_class.var_name: OFF
focal_class.declarator: ARR_SIZE = 1 << Short.SIZE
focal_class.modifier: private static final
focal_class.original_string: private static final int ARR_SIZE = 1 << Short.SIZE;
focal_class.type: int
focal_class.var_name: ARR_SIZE
focal_class.declarator: msgSuppliers = (Supplier<Message>[]) Array.newInstance(Supplier.class, ARR_SIZE)
focal_class.modifier: private final
focal_class.original_string: private final Supplier<Message>[] msgSuppliers = (Supplier<Message>[]) Array.newInstance(Supplier.class, ARR_SIZE);
focal_class.type: Supplier<Message>[]
focal_class.var_name: msgSuppliers
focal_class.declarator: initialized
focal_class.modifier: private
focal_class.original_string: private boolean initialized;
focal_class.type: boolean
focal_class.var_name: initialized
focal_class.declarator: minIdx = Integer.MAX_VALUE
focal_class.modifier: private
focal_class.original_string: private int minIdx = Integer.MAX_VALUE;
focal_class.type: int
focal_class.var_name: minIdx
focal_class.declarator: maxIdx = -1
focal_class.modifier: private
focal_class.original_string: private int maxIdx = -1;
focal_class.type: int
focal_class.var_name: maxIdx
focal_class.declarator: cnt
focal_class.modifier: private
focal_class.original_string: private int cnt;
focal_class.type: int
focal_class.var_name: cnt
focal_class.file: modules/core/src/main/java/org/apache/ignite/internal/managers/communication/IgniteMessageFactoryImpl.java
focal_class.identifier: IgniteMessageFactoryImpl
focal_class.interfaces: implements IgniteMessageFactory
focal_class.class_method_signature: IgniteMessageFactoryImpl.IgniteMessageFactoryImpl(MessageFactory[] factories)
focal_class.full_signature: public  IgniteMessageFactoryImpl(MessageFactory[] factories)
focal_class.identifier: IgniteMessageFactoryImpl
focal_class.modifiers: public
focal_class.parameters: (MessageFactory[] factories)
focal_class.signature:  IgniteMessageFactoryImpl(MessageFactory[] factories)
focal_class.class_method_signature: IgniteMessageFactoryImpl.register(short directType, Supplier<Message> supplier)
focal_class.full_signature: @Override public void register(short directType, Supplier<Message> supplier)
focal_class.identifier: register
focal_class.modifiers: @Override public
focal_class.parameters: (short directType, Supplier<Message> supplier)
focal_class.return: void
focal_class.signature: void register(short directType, Supplier<Message> supplier)
focal_class.class_method_signature: IgniteMessageFactoryImpl.create(short directType)
focal_class.full_signature: @Override public @Nullable Message create(short directType)
focal_class.identifier: create
focal_class.modifiers: @Override public @Nullable
focal_class.parameters: (short directType)
focal_class.return: Message
focal_class.signature: Message create(short directType)
focal_class.class_method_signature: IgniteMessageFactoryImpl.registeredDirectTypes()
focal_class.full_signature: public short[] registeredDirectTypes()
focal_class.identifier: registeredDirectTypes
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: short[]
focal_class.signature: short[] registeredDirectTypes()
focal_class.class_method_signature: IgniteMessageFactoryImpl.directTypeToIndex(short directType)
focal_class.full_signature: private static int directTypeToIndex(short directType)
focal_class.identifier: directTypeToIndex
focal_class.modifiers: private static
focal_class.parameters: (short directType)
focal_class.return: int
focal_class.signature: int directTypeToIndex(short directType)
focal_class.class_method_signature: IgniteMessageFactoryImpl.indexToDirectType(int idx)
focal_class.full_signature: private static short indexToDirectType(int idx)
focal_class.identifier: indexToDirectType
focal_class.modifiers: private static
focal_class.parameters: (int idx)
focal_class.return: short
focal_class.signature: short indexToDirectType(int idx)
focal_method.body: @Override public @Nullable Message create(short directType) {
          Supplier<Message> supplier = msgSuppliers[directTypeToIndex(directType)];
  
          if (supplier == null)
              throw new IgniteException("Invalid message type: " + directType);
  
          return supplier.get();
      }
focal_method.class_method_signature: IgniteMessageFactoryImpl.create(short directType)
focal_method.full_signature: @Override public @Nullable Message create(short directType)
focal_method.identifier: create
focal_method.invocations: directTypeToIndex get
focal_method.modifiers: @Override public @Nullable
focal_method.parameters: (short directType)
focal_method.return: Message
focal_method.signature: Message create(short directType)