@@ -0,0 +1,1232 @@
+/*%0A * Contributions to SpotBugs%0A * Copyright (C) 2021 Mikael St%C3%A5ldal%0A *%0A * This library is free software; you can redistribute it and/or%0A * modify it under the terms of the GNU Lesser General Public%0A * License as published by the Free Software Foundation; either%0A * version 2.1 of the License, or (at your option) any later version.%0A *%0A * This library is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU%0A * Lesser General Public License for more details.%0A *%0A * You should have received a copy of the GNU Lesser General Public%0A * License along with this library; if not, write to the Free Software%0A * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA%0A */%0Apackage ghIssues;%0A%0Aimport java.util.concurrent.CompletableFuture;%0Aimport java.util.concurrent.CompletionStage;%0A%0A/**%0A * @see %3Ca href=%22https://github.com/spotbugs/spotbugs/issues/1397%22%3EGitHub issue%3C/a%3E%0A */%0Apublic class Issue1397 %7B%0A    CompletionStage%3CVoid%3E completedFuture() %7B%0A        // 1st argument of CompletableFuture#completedStage(U) should be nullable%0A        return CompletableFuture.completedStage(null);%0A    %7D%0A%7D%0A

Add unit test for issue 1397