Skip to content

Commit 367f560

Browse files
schaudergregturn
authored andcommitted
#695 - Polishing.
* Removed Jaxb annotations from packaga-info.java. * Simplified Test code by removing unused code a debug output. * Formatting. * Updated copyright headers.
1 parent dca65e1 commit 367f560

15 files changed

+56
-116
lines changed

src/main/java/org/springframework/hateoas/Link.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2017 the original author or authors.
2+
* Copyright 2012-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -44,7 +44,7 @@
4444
* @author Greg Turnquist
4545
*/
4646
@JsonInclude(JsonInclude.Include.NON_NULL)
47-
@JsonIgnoreProperties(value = "templated", ignoreUnknown = true)
47+
@JsonIgnoreProperties(value = "templated", ignoreUnknown = true)
4848
@AllArgsConstructor(access = AccessLevel.PACKAGE)
4949
@Getter
5050
@EqualsAndHashCode(of = { "rel", "href", "hreflang", "media", "title", "deprecation", "affordances" })

src/main/java/org/springframework/hateoas/PagedResources.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2015 the original author or authors.
2+
* Copyright 2012-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -29,6 +29,7 @@
2929
* DTO to implement binding response representations of pageable collections.
3030
*
3131
* @author Oliver Gierke
32+
* @author Greg Turnquist
3233
*/
3334
public class PagedResources<T> extends Resources<T> {
3435

src/main/java/org/springframework/hateoas/Resource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012 the original author or authors.
2+
* Copyright 2012-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/springframework/hateoas/ResourceSupport.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2017 the original author or authors.
2+
* Copyright 2012-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -31,6 +31,7 @@
3131
*
3232
* @author Oliver Gierke
3333
* @author Johhny Lim
34+
* @author Greg Turnquist
3435
*/
3536
public class ResourceSupport implements Identifiable<Link> {
3637

src/main/java/org/springframework/hateoas/Resources.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012 the original author or authors.
2+
* Copyright 2012-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -29,6 +29,7 @@
2929
* General helper to easily create a wrapper for a collection of entities.
3030
*
3131
* @author Oliver Gierke
32+
* @author Greg Turnquist
3233
*/
3334
public class Resources<T> extends ResourceSupport implements Iterable<T> {
3435

src/main/java/org/springframework/hateoas/VndErrors.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013 the original author or authors.
2+
* Copyright 2013-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -32,6 +32,7 @@
3232
*
3333
* @see https://github.com/blongden/vnd.error
3434
* @author Oliver Gierke
35+
* @author Greg Turnquist
3536
*/
3637
public class VndErrors implements Iterable<VndErrors.VndError> {
3738

@@ -87,7 +88,7 @@ protected VndErrors() {
8788
/**
8889
* Adds an additional {@link VndError} to the wrapper.
8990
*
90-
* @param errors
91+
* @param error
9192
*/
9293
public VndErrors add(VndError error) {
9394
this.vndErrors.add(error);

src/main/java/org/springframework/hateoas/collectionjson/ResourceSupportMixin.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2015 the original author or authors.
2+
* Copyright 2015-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -19,8 +19,6 @@
1919

2020
import java.util.List;
2121

22-
import javax.xml.bind.annotation.XmlElement;
23-
2422
import org.springframework.hateoas.Link;
2523
import org.springframework.hateoas.ResourceSupport;
2624

@@ -33,18 +31,17 @@
3331
* Jackson 2 mixin to invoke the related serializer/deserializer.
3432
*
3533
* @author Greg Turnquist
34+
* @author Jens Schauder
3635
*/
3736
@JsonSerialize(using = CollectionJsonResourceSupportSerializer.class)
3837
@JsonDeserialize(using = CollectionJsonResourceSupportDeserializer.class)
3938
abstract class ResourceSupportMixin extends ResourceSupport {
4039

4140
@Override
42-
@XmlElement(name = "collection")
4341
@JsonProperty("collection")
4442
@JsonInclude(JsonInclude.Include.NON_EMPTY)
4543
@JsonSerialize(using = CollectionJsonLinkListSerializer.class)
4644
@JsonDeserialize(using = CollectionJsonLinkListDeserializer.class)
4745
public abstract List<Link> getLinks();
4846

49-
5047
}

src/main/java/org/springframework/hateoas/hal/ResourceSupportMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012 the original author or authors.
2+
* Copyright 2012-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/springframework/hateoas/hal/ResourcesMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/springframework/hateoas/hal/forms/Jackson2HalFormsModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2017 the original author or authors.
2+
* Copyright 2016-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)