Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.3
    • Component/s: Plugin
    • Labels:
      None

      Description

      public void foo(List<String> items) {
        var a = 1;            // Legal
        var b = 2, c = 3.0;   // Illegal: multiple declarators
        var d[] = new int[4]; // Illegal: extra bracket pairs
        var e;                // Illegal: no initializer
        var f = { 6 };        // Illegal: array initializer
        var g = (g = 7);      // Illegal: self reference in initializer
      
        for (var i = 0; i < 10; i++) {
          // ...
        }
      
        for(var item: items) {
          // ...
        }
      
        try (var fis = new java.io.FileInputStream("myStream")) {
          // ...
        } catch (java.io.FileNotFoundException e) {
          // ...
        } catch (java.io.IOException e) {
          // ...
        }
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                michael.gumowski Michael Gumowski
                Reporter:
                michael.gumowski Michael Gumowski
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: