Exemple #1
0
  public void visitStringConstant(Clazz clazz, StringConstant stringConstant) {
    if (shouldBeMarkedAsUsed(stringConstant)) {
      markAsUsed(stringConstant);

      markConstant(clazz, stringConstant.u2stringIndex);

      // Mark the referenced class and class member, if any.
      stringConstant.referencedClassAccept(this);
      stringConstant.referencedMemberAccept(this);
    }
  }
Exemple #2
0
  public void visitStringConstant(Clazz clazz, StringConstant stringConstant) {
    if (shouldBeMarkedAsUsed(stringConstant)) {
      markAsUsed(stringConstant);

      markConstant(clazz, stringConstant.u2stringIndex);

      // Mark the referenced class and its parameterless constructor,
      // if the string is being used in a Class.forName construct.
      // stringConstant.referencedClassAccept(dynamicClassMarker);

      // Mark the referenced class or class member, if any.
      stringConstant.referencedClassAccept(this);
      stringConstant.referencedMemberAccept(this);
    }
  }