1 package com.example.jspecify.annotatedpackage; 2 3 import org.jspecify.annotations.Nullable; 4 5 public class Utils { 6 toStringOrDefault(@ullable Object o1, String s)7 public static String toStringOrDefault(@Nullable Object o1, String s) { 8 if (o1 != null) { 9 return o1.toString(); 10 } 11 return s; 12 } 13 } 14