Skip to content

Cache toString for SootClassMemberSignature#1155

Merged
swissiety merged 2 commits intosoot-oss:developfrom
Liyw979:improve/toString
Jan 13, 2025
Merged

Cache toString for SootClassMemberSignature#1155
swissiety merged 2 commits intosoot-oss:developfrom
Liyw979:improve/toString

Conversation

@Liyw979
Copy link
Copy Markdown
Contributor

@Liyw979 Liyw979 commented Jan 9, 2025

reference

private final Supplier<String> _cachedToString =
Suppliers.memoize(() -> String.format("%s %s", getType(), getName()));
@Override
@Nonnull
public String toString() {
return _cachedToString.get();
}

@swissiety swissiety merged commit 96e022e into soot-oss:develop Jan 13, 2025
@Liyw979 Liyw979 deleted the improve/toString branch January 14, 2025 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants