Skip to content

Commit

Permalink
refactor: OpenRewrite best practices
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek and TeamModerne committed Nov 4, 2024
1 parent cfa19f0 commit 1dba2dd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
*/
package com.amazonaws.serverless.proxy.internal;

import org.jspecify.annotations.Nullable;

import java.util.Locale;

public class SecurityUtils {
Expand All @@ -25,7 +27,7 @@ private static StringBuffer source() {
* @param s The string to be cleaned
* @return The escaped string
*/
public static String encode(String s) {
public static @Nullable String encode(String s) {
if (s == null) {
return null;
}
Expand Down

0 comments on commit 1dba2dd

Please sign in to comment.