You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Should we use javax.annotation.Nullable and javax.annotation.concurrent.Immutable #182
changed the title [-]Consider using javax.annotation.Nullable and javax.annotation.concurrent.Immutable[/-][+]Should we use javax.annotation.Nullable and javax.annotation.concurrent.Immutable[/+]on Sep 26, 2015
Actually the annotations are not part of Java 8, which is good because you can include them from the jsr305 jar and it will work the same everywhere. What changes in Java 8 is that you have type annotations, so you can write things like List<@Nullable String>. Conversely, you can't write that if you want to compile on earlier versions, though you can still write @Nullable String frob(@Nullable String s).
@Nullable in particular can provide a useful service to client code if that code is using FindBugs or another similar tool.
Activity
[-]Consider using javax.annotation.Nullable and javax.annotation.concurrent.Immutable[/-][+]Should we use javax.annotation.Nullable and javax.annotation.concurrent.Immutable[/+]eamonnmcmanus commentedon Sep 28, 2015
Actually the annotations are not part of Java 8, which is good because you can include them from the jsr305 jar and it will work the same everywhere. What changes in Java 8 is that you have type annotations, so you can write things like
List<@Nullable String>. Conversely, you can't write that if you want to compile on earlier versions, though you can still write@Nullable String frob(@Nullable String s).@Nullablein particular can provide a useful service to client code if that code is using FindBugs or another similar tool.garrettjonesgoogle commentedon Nov 23, 2016
Stale issue, closing out.
build(deps): update dependency com.google.cloud:google-cloud-shared-c…
build(deps): update dependency com.google.cloud:google-cloud-shared-c…
chore: include generated samples dir (#182)
chore(main): release 2.2.1 (#182)
feat: Enable REST transport for most of Java and Go clients (#182)
chore(deps): update dependency com.google.cloud:google-cloud-data-fus…
fix: update repo name (#182)
chore(master): release 0.2.0 (#180)
chore(main): release 1.1.0 (googleapis#182)
chore(main): release 0.7.0 (googleapis#185)
chore(main): release 0.6.0 (#182)
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, gener…
deps: update dependency googleapis-common-protos to v1.56.4 (#182)
chore(main): release 1.3.0 (#172)
chore: release 1.101.3-SNAPSHOT (#182)
chore(deps): update dependency com.google.cloud:libraries-bom to v12 (#…
chore(deps): update dependency com.google.cloud:libraries-bom to v8 (#…
0.11.0 has been released (#182)
chore: release 1.101.3-SNAPSHOT (googleapis#182)
0.11.0 has been released (#182)
Realign version number (#182)
Realign version number (#182)