test_class.file: dubbo-plugin/dubbo-qos/src/test/java/org/apache/dubbo/qos/command/decoder/TelnetCommandDecoderTest.java
test_class.identifier: TelnetCommandDecoderTest
test_case.body: @Test
      public void testDecode() throws Exception {
          CommandContext context = TelnetCommandDecoder.decode("test a b");
          assertThat(context.getCommandName(), equalTo("test"));
          assertThat(context.isHttp(), is(false));
          assertThat(context.getArgs(), arrayContaining("a", "b"));
      }
test_case.class_method_signature: TelnetCommandDecoderTest.testDecode()
test_case.full_signature: @Test public void testDecode()
test_case.identifier: testDecode
test_case.invocations: decode assertThat getCommandName equalTo assertThat isHttp is assertThat getArgs arrayContaining
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDecode()
focal_class.file: dubbo-plugin/dubbo-qos/src/main/java/org/apache/dubbo/qos/command/decoder/TelnetCommandDecoder.java
focal_class.identifier: TelnetCommandDecoder
focal_class.class_method_signature: TelnetCommandDecoder.decode(String str)
focal_class.full_signature: public static final CommandContext decode(String str)
focal_class.identifier: decode
focal_class.modifiers: public static final
focal_class.parameters: (String str)
focal_class.return: CommandContext
focal_class.signature: CommandContext decode(String str)
focal_method.body: public static final CommandContext decode(String str) {
          CommandContext commandContext = null;
          if (!StringUtils.isBlank(str)) {
              String[] array = str.split("(?<![\\\\]) ");
              if (array.length > 0) {
                  String name = array[0];
                  String[] targetArgs = new String[array.length - 1];
                  System.arraycopy(array, 1, targetArgs, 0, array.length - 1);
                  commandContext = CommandContextFactory.newInstance( name, targetArgs,false);
                  commandContext.setOriginRequest(str);
              }
          }
  
          return commandContext;
      }
focal_method.class_method_signature: TelnetCommandDecoder.decode(String str)
focal_method.full_signature: public static final CommandContext decode(String str)
focal_method.identifier: decode
focal_method.invocations: isBlank split arraycopy newInstance setOriginRequest
focal_method.modifiers: public static final
focal_method.parameters: (String str)
focal_method.return: CommandContext
focal_method.signature: CommandContext decode(String str)