Skip to content

Instantly share code, notes, and snippets.

@ali-kamalizade
Last active December 5, 2020 20:52
Show Gist options
  • Save ali-kamalizade/793d24375093f24dda097ac12a010231 to your computer and use it in GitHub Desktop.
Save ali-kamalizade/793d24375093f24dda097ac12a010231 to your computer and use it in GitHub Desktop.
A sample Java class which uses annotations provided by Project Lombok
package net.example.demo;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(Include.NON_NULL)
public class UserDataWithLombok implements Serializable {
List<String> permissions;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment