@Test public void should_strip_modifiers_when_no_lparen() throws Exception { String signature = "public synchronized java.lang.String com.acme.Foo.bar"; assertThat(stripModifiers(signature), is("com.acme.Foo.bar")); }
public static String stripModifiers(String signature) { int pos = signature.indexOf("("); if (pos < 0) { pos = signature.length() - 1; } while (pos >= 0 && signature.charAt(pos) != ' ') { pos -= 1; } return signature.substring(pos + 1); }
SignatureUtils { public static String stripModifiers(String signature) { int pos = signature.indexOf("("); if (pos < 0) { pos = signature.length() - 1; } while (pos >= 0 && signature.charAt(pos) != ' ') { pos -= 1; } return signature.substring(pos + 1); } }
SignatureUtils { public static String stripModifiers(String signature) { int pos = signature.indexOf("("); if (pos < 0) { pos = signature.length() - 1; } while (pos >= 0 && signature.charAt(pos) != ' ') { pos -= 1; } return signature.substring(pos + 1); }  }
SignatureUtils { public static String stripModifiers(String signature) { int pos = signature.indexOf("("); if (pos < 0) { pos = signature.length() - 1; } while (pos >= 0 && signature.charAt(pos) != ' ') { pos -= 1; } return signature.substring(pos + 1); }  static String normalizeSignature(MethodSignature3 methodSignature); static String normalizeSignature(String signature); static MethodLocation3 makeMethodLocation(Signature signature, String location); static String signatureToString(Signature signature); static String stripModifiers(String signature); static String getVisibility(String modifiers); static Signature makeSignature(Class<?> clazz, Method method); static MethodSignature3 makeMethodSignature(Class<?> clazz, Method method); static MethodSignature3 makeConstructorSignature(
      Class<?> clazz, Constructor<?> constructor); }
SignatureUtils { public static String stripModifiers(String signature) { int pos = signature.indexOf("("); if (pos < 0) { pos = signature.length() - 1; } while (pos >= 0 && signature.charAt(pos) != ' ') { pos -= 1; } return signature.substring(pos + 1); }  static String normalizeSignature(MethodSignature3 methodSignature); static String normalizeSignature(String signature); static MethodLocation3 makeMethodLocation(Signature signature, String location); static String signatureToString(Signature signature); static String stripModifiers(String signature); static String getVisibility(String modifiers); static Signature makeSignature(Class<?> clazz, Method method); static MethodSignature3 makeMethodSignature(Class<?> clazz, Method method); static MethodSignature3 makeConstructorSignature(
      Class<?> clazz, Constructor<?> constructor); static final String PUBLIC; static final String PROTECTED; static final String PACKAGE_PRIVATE; static final String PRIVATE; }