Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2019

Weld should ignore synthetic members

XMLWordPrintable

    • Hide

      Instead of the method parameter use an additional local variable with the same value assigned; i.e. instead of:

      public void observe(@Observes @Juicy String payload) {
         Arrays.asList("foo").stream().filter((s) -> s.equals(payload));
      }
      

      use this:

      public void observe(@Observes @Juicy String payload) {
         String p = payload;
         Arrays.asList("foo").stream().filter((s) -> s.equals(p));
      }
      
      Show
      Instead of the method parameter use an additional local variable with the same value assigned; i.e. instead of: public void observe(@Observes @Juicy String payload) { Arrays.asList( "foo" ).stream().filter((s) -> s.equals(payload)); } use this: public void observe(@Observes @Juicy String payload) { String p = payload; Arrays.asList( "foo" ).stream().filter((s) -> s.equals(p)); }

          mkouba@redhat.com Martin Kouba
          rhn-engineering-jharting Jozef Hartinger
          Votes:
          0 Vote for this issue
          Watchers:
          4 Start watching this issue

            Created:
            Updated:
            Resolved: