Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java: Fix linting issues #4800

Merged
merged 5 commits into from
Jan 31, 2024
Merged

Java: Fix linting issues #4800

merged 5 commits into from
Jan 31, 2024

Conversation

johnoliver
Copy link
Member

Motivation and Context

Description

Contribution Checklist

@johnoliver johnoliver requested a review from a team as a code owner January 31, 2024 13:52
@shawncal shawncal added the java Issue or PR regarding Java code label Jan 31, 2024
@github-actions github-actions bot changed the title Fix linting issues Java: Fix linting issues Jan 31, 2024
java/samples/pom.xml Show resolved Hide resolved
@@ -105,6 +105,6 @@ Is it weekend time (weekend/not weekend)?
// Show the result
System.out.println("--- Prompt Function result");
var result = kernel.invokeAsync(kindOfDay, null, String.class).block();
System.out.println(result.getResultVariable());
System.out.println(result.getResultVariable().getValue());
Copy link
Member

Choose a reason for hiding this comment

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

I thought there was a "getValue()" on FunctionResult that is a shorthand for this.
<edit>I see you do this in Example09. Best to be consistent. It doesn't matter to me which way.</edit>

return of(t);
}

public static <T> ContextVariable<T> untypedOf(
Copy link
Member

Choose a reason for hiding this comment

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

Should this return ContextVariable<?>

@dsgrieve dsgrieve merged commit 11b2421 into microsoft:java-v1 Jan 31, 2024
2 checks passed
johnoliver added a commit to johnoliver/semantic-kernel that referenced this pull request Jun 5, 2024
johnoliver added a commit to johnoliver/semantic-kernel that referenced this pull request Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
java Issue or PR regarding Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants