< prev index next >

src/jdk.jshell/share/classes/jdk/jshell/Snippet.java

Print this page

        

@@ -71,14 +71,13 @@
          * ({@link jdk.jshell.Snippet.SubKind#TYPE_IMPORT_ON_DEMAND_SUBKIND}),
          * or a static on-demand type import
          * ({@link jdk.jshell.Snippet.SubKind#SINGLE_STATIC_IMPORT_SUBKIND}) --
          * use {@link jdk.jshell.Snippet#subKind()} to distinguish.
          *
+         * @jls 7.5 Import Declarations
          * <P>
          * An import declaration is {@linkplain Kind#isPersistent() persistent}.
-         *
-         * @jls 7.5 Import Declarations
          */
         IMPORT(true),
 
         /**
          * A type declaration.

@@ -90,25 +89,23 @@
          * {@link jdk.jshell.Snippet.SubKind#INTERFACE_SUBKIND},
          * classes {@link jdk.jshell.Snippet.SubKind#CLASS_SUBKIND}, enums, and
          * annotation interfaces -- see {@link jdk.jshell.Snippet.SubKind} to
          * differentiate.
          *
+         * @jls 7.6 Top Level Type Declarations
          * <P>
          * A type declaration is {@linkplain Kind#isPersistent() persistent}.
-         *
-         * @jls 7.6 Top Level Type Declarations
          */
         TYPE_DECL(true),
 
         /**
          * A method declaration.
          * The snippet is an instance of {@link jdk.jshell.MethodSnippet}.
          *
+         * @jls 8.4 Method Declarations
          * <P>
          * A method declaration is {@linkplain Kind#isPersistent() persistent}.
-         *
-         * @jls 8.4 Method Declarations
          */
         METHOD(true),
 
         /**
          * One variable declaration.

@@ -117,14 +114,13 @@
          * <P>
          * The variable may be with or without initializer, or be a temporary
          * variable representing an expression -- see
          * {@link jdk.jshell.Snippet.SubKind}to differentiate.
          *
+         * @jls 8.3 Field Declarations
          * <P>
          * A variable declaration is {@linkplain Kind#isPersistent() persistent}.
-         *
-         * @jls 8.3 Field Declarations
          */
         VAR(true),
 
         /**
          * An expression, with or without side-effects.
< prev index next >