View Javadoc

1   package com.atlassian.security.auth.trustedapps;
2   
3   public class Null
4   {
5       public static void not(String name, Object notNull) /* sheepishly */ throws IllegalArgumentException
6       {
7           if (notNull == null)
8           {
9               throw new NullArgumentException(name);
10          }
11      }
12  
13      private Null() {}
14  
15      static class NullArgumentException extends IllegalArgumentException
16      {
17          NullArgumentException(String name)
18          {
19              super(name + " should not be null!");
20          }
21      }
22  }