• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.uber.mylib;
2 
3 import javax.annotation.Nullable;
4 import org.utilities.StringUtils;
5 
6 /** A sample class. */
7 public class MyClass {
8 
log(@ullable Object x)9   static void log(@Nullable Object x) {
10     if (x == null) {
11       return;
12     }
13     System.out.println(x.toString());
14   }
15 
checkModel(@ullable String s)16   static int checkModel(@Nullable String s) {
17     if (!StringUtils.isEmptyOrNull(s)) {
18       return s.hashCode();
19     }
20     return 0;
21   }
22 
foo()23   static void foo() {
24     log(null);
25   }
26 }
27