Polish source code.

This commit is contained in:
John Blum
2019-06-10 18:30:11 -07:00
parent 24700d556b
commit 099a030028
4 changed files with 17 additions and 18 deletions

View File

@@ -41,7 +41,7 @@ public class Author {
private Long id;
@NonNull
private String name;
private final String name;
public boolean isNew() {
return getId() == null;

View File

@@ -17,14 +17,14 @@ package example.app.model;
import java.time.LocalDate;
import lombok.Data;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Transient;
import org.springframework.data.gemfire.mapping.annotation.Region;
import lombok.Data;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
/**
* The {@link Book} class is an Abstract Data Type (ADT) modeling a book.
*
@@ -49,7 +49,7 @@ public class Book {
private LocalDate publishedDate;
@NonNull
private String title;
private final String title;
@Transient
public boolean isNew() {

View File

@@ -13,7 +13,6 @@
* or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package example.app.model;
import java.util.UUID;
@@ -48,7 +47,7 @@ public class ISBN implements Comparable<ISBN> {
}
public String getNumber() {
return number;
return this.number;
}
@Override