View Javadoc
1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.typeresolution.testdata;
5   
6   public class UsesJavaStreams {
7       interface WithStaticAndDefaultMethod {
8           static void performOn() { }
9           default void myToString() {}
10      }
11  
12      class ImplWithStaticAndDefaultMethod implements WithStaticAndDefaultMethod {}
13  
14      public void performStuff() {
15          WithStaticAndDefaultMethod.performOn();
16          new ImplWithStaticAndDefaultMethod().myToString();
17      }
18  }