diff --git a/javaguide.html b/javaguide.html index 5ef0dc8dc..5b11ee039 100644 --- a/javaguide.html +++ b/javaguide.html @@ -202,6 +202,11 @@
Static import is not used for static nested classes. They are imported with +normal imports.
+.
), the two colons of a method reference
- (::
), the ampersand in type bounds
- (<T extends Foo & Bar>
), and the pipe in
- catch blocks
- (catch (FooException | BarException e)
)..
)::
)<T extends Foo & Bar>
)catch (FooException | BarException e)
).,
) stays attached to the token that
precedes it.MyLambda<String, Long, Object> lambda = + (String label, Long value, Object obj) -> { + ... + }; + +Predicate<String> predicate = str -> + longExpressionInvolving(str); ++
Note: The primary goal for line wrapping is to have clear @@ -490,7 +513,7 @@
::
) of a method reference, which
is written like Object::toString
.
), which is written like
- object.toString()
object.toString()