Add package-info.java to each package

Closes gh-109
This commit is contained in:
Andy Wilkinson
2015-09-07 13:20:03 +01:00
parent 7b1d9e714c
commit de095eb9fe
16 changed files with 267 additions and 5 deletions

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.restdocs.mockmvc.util;
package org.springframework.restdocs.mockmvc;
import java.util.Enumeration;
import java.util.Iterator;
@@ -26,7 +26,7 @@ import java.util.Iterator;
*
* @param <T> the type of the Enumeration's contents
*/
public final class IterableEnumeration<T> implements Iterable<T> {
final class IterableEnumeration<T> implements Iterable<T> {
private final Enumeration<T> enumeration;
@@ -63,7 +63,7 @@ public final class IterableEnumeration<T> implements Iterable<T> {
* @param enumeration The enumeration to expose as an {@code Iterable}
* @return the iterable
*/
public static <T> Iterable<T> iterable(Enumeration<T> enumeration) {
static <T> Iterable<T> iterable(Enumeration<T> enumeration) {
return new IterableEnumeration<T>(enumeration);
}

View File

@@ -16,7 +16,7 @@
package org.springframework.restdocs.mockmvc;
import static org.springframework.restdocs.mockmvc.util.IterableEnumeration.iterable;
import static org.springframework.restdocs.mockmvc.IterableEnumeration.iterable;
import java.io.IOException;
import java.io.PrintWriter;

View File

@@ -16,7 +16,7 @@
package org.springframework.restdocs.mockmvc;
import static org.springframework.restdocs.mockmvc.util.IterableEnumeration.iterable;
import static org.springframework.restdocs.mockmvc.IterableEnumeration.iterable;
import java.util.ArrayList;
import java.util.Arrays;

View File

@@ -0,0 +1,20 @@
/*
* Copyright 2014-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Core classes for using Spring REST Docs with Spring Test's MockMvc.
*/
package org.springframework.restdocs.mockmvc;