1 /* 2 * JavaBean Tester (https://github.com/hazendaz/javabean-tester) 3 * 4 * Copyright 2012-2021 Hazendaz. 5 * 6 * All rights reserved. This program and the accompanying materials 7 * are made available under the terms of The Apache Software License, 8 * Version 2.0 which accompanies this distribution, and is available at 9 * http://www.apache.org/licenses/LICENSE-2.0.txt 10 * 11 * Contributors: 12 * CodeBox (Rob Dawson). 13 * Hazendaz (Jeremy Landis). 14 */ 15 package com.codebox.bean; 16 17 import java.io.Serializable; 18 import java.util.ArrayList; 19 import java.util.List; 20 21 import lombok.Data; 22 23 /** 24 * The Class NonDeserializableBean. 25 */ 26 @Data 27 public class NonDeserializableBean implements Serializable { 28 29 /** The Constant serialVersionUID. */ 30 private static final long serialVersionUID = 1L; 31 32 /** The array which can sometimes not be serializable. */ 33 private final List<Object> list; 34 35 /** 36 * Make bean non deserializable. 37 */ 38 public NonDeserializableBean() { 39 this.list = new ArrayList<>(); 40 } 41 42 }