Skip to content

Instantly share code, notes, and snippets.

@relax-more
Created June 23, 2015 05:50
Show Gist options
  • Save relax-more/48a6c85e7eb7896ab59e to your computer and use it in GitHub Desktop.
Save relax-more/48a6c85e7eb7896ab59e to your computer and use it in GitHub Desktop.
@nullable and @NotNull annotation
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>3.0.0</version>
</dependency>
// if added @Nullable, the param can use null, if not, the param can not use null that means same as @Notnull
List<Data> getDataList(@Nullable Query query, Long limit, Long offset);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment