Skip to content

Commit

Permalink
Patched /private/var/folders/19/08z9_xys69v3f1xfqtyn9jyw0000gn/T/tmp9…
Browse files Browse the repository at this point in the history
…f5t66d9/tests/cicd/generate_docstring/java_test_file.java
  • Loading branch information
patched.codes[bot] committed Sep 2, 2024
1 parent 11ceac5 commit 2d9d38b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/cicd/generate_docstring/java_test_file.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
class Test {
/**
* Adds two integers together.
*
* @param a The first integer to be added
* @param b The second integer to be added
* @return The sum of the two input integers
*/
public static int a_plus_b(Integer a, Integer b) {
return a + b;
}

/**
* Compares two objects using a provided key mapping function.
*
* @param keymap A function that maps objects to Comparable values for comparison
* @param a The first object to compare
* @param b The second object to compare
* @return -1 if a is less than b, 1 if a is greater than b, 0 if they are equal
*/
public static int a_plus_b(Function<Object, Comparable> keymap, object a, Object b) {
if (keymap(a) < keymap(b)) {
return -1;
Expand Down

0 comments on commit 2d9d38b

Please sign in to comment.