package sfBugs;

import java.net.URI;

import javax.annotation.Nonnull;

import com.google.common.base.Function;

import edu.umd.cs.findbugs.annotations.NoWarning;

public class Bug3589328 {

    public static void main(String[] args) {
        System.out.println("Hello World!");
    }

    public static class UriToString implements Function<URI, String> {

        @Override
		@NoWarning(value="NP")
        public String apply(@Nonnull URI input) {
            return input.toString();
        }
    }


}

@@ -375,10 +375,16 @@
 ide%0A
-%09%09
+        
 @NoW
@@ -434,17 +434,8 @@
 ply(
-@Nonnull 
 URI 
@@ -440,16 +440,91 @@
 I input)
+ %7B%0A          if (input == null) %7B%0A            return null;%0A          %7D else
  %7B%0A     
@@ -555,16 +555,28 @@
 ring();%0A
+          %7D%0A
         

fix misuse of Nonnull annotation in test case