Skip to content

Clipboard features #760

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

thunder-coding
Copy link
Member

@thunder-coding thunder-coding commented Apr 3, 2025

@@ -35,7 +37,14 @@ protected boolean trimInput() {

@Override
public void writeResult(PrintWriter out) {
clipboard.setPrimaryClip(ClipData.newPlainText("", inputString));
var clipData = ClipData.newPlainText("", inputString);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not familar with how you prefer to write Java, but I prefer to use implicit types where available in strictly typed languages. var should do the trick instead of having to write large classnames, or you want me to change this to maintain consistency of smell with other parts of the code?

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.

1 participant